|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
General - "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...
Would prefer to do this in PHP, but would accept other languages too ![]() Thanks, Lucy |
|
#2
|
||||
|
||||
|
dictionary
Hi lucym, welcome to the forums,
AFAIK, the most common way is to have a "dictionary" of typos mapped to the correctly spelled words. eg. wiget, widgt, wiidget = widget Otherwise you would need a cumbersome recursive script to loop through all possible variations, which would take up a massive amount of server resources.
__________________
WP plugins - Error Reporting, Clean Options http://www.mittineague.com/dev/er.php http://www.mittineague.com/dev/co.php |
|
#3
|
|||
|
|||
|
I am now trying Soundex, Levenstein and Yahoo API... hopefully one will do all job
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > General - "Did you mean" feature |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|