jquery - Check for misspelt words using PHP -


i using code create instant search site...

http://woorkup.com/2010/09/13/how-to-create-your-own-instant-search/

some of phrases in our database our complex , can misspelt on top of wanted use spelling suggestions.

does know of ways offer correct spellings based on string provided?

any appreciated.

if searches phrase, doesn't click of results, , researches new similar phrase (check out levenshtein()) , does click result, write database original phrase , new phrase.

record each time happens. if phrase matched, increment counter phrase.

then, if searches phrase matches 1 of possibly incorrect phrases (perhaps have threshold using counter), can display did mean search for...? results (if any) incorrect phrase.

this isn't spell check per se, think useful pick on common mistakes. unfortunately though, don't have many people build index google's did mean?


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -