Did you mean? - suggestion algorithms in php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
pradeepkrjangir
Forum Newbie
Posts: 2
Joined: Wed Nov 10, 2010 1:19 am

Did you mean? - suggestion algorithms in php

Post 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 :)
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: Did you mean? - suggestion algorithms in php

Post 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.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: Did you mean? - suggestion algorithms in php

Post 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.
Post Reply