/    Sign up×
Community /Pin to ProfileBookmark

"Did you mean" feature

Hello, I want to add the ‘did you mean’ feature (like on Google) on my shareware site, where a lot of users have mistypes, and they get 0 results… so they exit the site very fast. Do you have any idea how I could implement such a thing? Does it require a dictionary or something? I found some scripts, but none of them gave relevant results… just stupid, irrelevant suggestions. Any help would be appreciated…

If mods consider this should go to another subforum (ASP?), please move it.

Thanks, Lucy

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@lucymauthorMar 18.2008 — wow, thanks for the resources. hope to solve the issue asap.
Copy linkTweet thisAlerts:
@lucymauthorMar 20.2008 — I read your suggestions, also about some APIs from Yahoo, I am now trying to see which one gives me better results (Levenstein vs Soundex vs API).
Copy linkTweet thisAlerts:
@bokehMar 20.2008 — I'd start with double metaphone and then use the other functions to increase accuracy.
Copy linkTweet thisAlerts:
@lucymauthorMar 22.2008 — OK, the winner is Yahoo Spelling Suggestion (which uses Yahoo API). This gives your site the possibility to suggest exactly what Yahoo Search suggests ? Awesome, I would say!

Here is a short summary about using it, if you guys want to use it too: it requires a Yahoo API key, which can be got free. It is limited to 5000 queries per day, so I suggest caching the suggestion (which I implemented, as my site has more then 5000 searches per day). The page returned by Yahoo needs to be parsed, and see if there is a suggestion given. This is a page that gives a suggestion, this is one that has no suggestion.

You can see it live on my shareware site: http://www.coredownload.com/ try some mistypes, like "enail backup", "rgistry cleaner" or whatever you want. I also implemented a function to make bold italic the words that are different between the search query and the suggestion from Yahoo. ?

If you need assistance on implementing this on your site, let me know.

Thanks, Lucy
×

Success!

Help @lucym spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...