Page 1 of 1

Creating "Did you mean?" word spell check

Posted: Tue Sep 02, 2008 2:39 pm
by kendall
hi,

I'm trying to create a custom glossary using word slangs language that is not necessarily apart of the English Dictionary Language. How does google and other search engine do this? i have been looking up the SOUNDEX function. Is this is what is being used in these instances? Has anyone been successful in using it on custom words?

Re: Creating "Did you mean?" word spell check

Posted: Tue Sep 02, 2008 3:48 pm
by Mordred
I have used http://bg2.php.net/levenshtein with good results to handle misspellings. Slang words discovery seems to be another topic, and neither levenstein nor soundex sound (pun not intended) right for the job. It seems you have to explain more on what you need, perhaps with some examples.

Re: Creating "Did you mean?" word spell check

Posted: Tue Sep 02, 2008 3:56 pm
by kendall
Mordred wrote:I have used http://bg2.php.net/levenshtein with good results to handle misspellings. Slang words discovery seems to be another topic, and neither levenstein nor soundex sound (pun not intended) right for the job. It seems you have to explain more on what you need, perhaps with some examples.
Well I was hoping that the I would have been able to use the function to get words that may be similar in spelling in the database with that of the user's input.

the function you recommended and also similar_text() seems like it might just work. Ill look for the MYSQL versions of these functions....


thanks