Duplicate of how does the google did you mean algorithm work
does anyone know how to write a word suggestion feature like Google's "did you mean?" feature? or know where I can find code samples.
Thanks
Duplicate of how does the google did you mean algorithm work
does anyone know how to write a word suggestion feature like Google's "did you mean?" feature? or know where I can find code samples.
Thanks
Peter Norvig (Google's head of research) has a simple one here which actually works pretty effectively: http://norvig.com/spell-correct.html
It's in python but is fairly simple to translate to other languages (note that there are some translations at the bottom of the page, but the C# version at least has a number of bugs in it and is very inefficient, so it would be worth doing the translation to whatever language you need yourself - it's also a good way to understand the code).