A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 12: Plug-in 96 - Suggest Spelling

In Chapter 3, Plug-in 8, I introduced a simple spelling checker. Well here's a companion plug-in you could use with it to actually offer suggested replacements for misspelled words.

The Figure shows the plug-in attempting to find the closest matches to a word it is passed, and returning them in order of likelihood.