Page 1 of 1

Did you mean? - suggestion algorithms in php

Posted: Sat Nov 13, 2010 2:30 am
by pradeepkrjangir
:) Request to any,
please recommend or show me how to make a "Did you mean?" spelling suggestion algorithm or script using php.

thanx :)

Re: Did you mean? - suggestion algorithms in php

Posted: Sun Nov 21, 2010 11:00 am
by DaveTheAve
I've never had a chance to program one of these before, but I have thought of possible ways to return relevant information from the database... might not apply to your situation. MySQL has ways to obtain rows based off relevance to the query and order it accordingly should work well with mis-spellings as long as they are not too far off. Might be something to look into.

Re: Did you mean? - suggestion algorithms in php

Posted: Fri Nov 26, 2010 1:52 pm
by greyhoundcode
You might make use of functions like SOUNDS LIKE in MySQL or metaphone() in PHP as part of your solution, possibly, depending on what exactly your requirements are. And of course what language you are working with.