This class can be used to generate words that sound similar to a given word.
It takes a word and replaces some letters to generates new variants of the word that sound similar.
The class may employ a more complex algorithm that combines replacement rules.
Prize: One book of choice by O'Reilly
|Sometimes when users misspell words, for instance in search sites, the results may not be what the user expects.
Some search engines, like for instance Google, also present another search words when it seems they are misspelled.
This class provides a PHP solution generate alternatives to possibly misspelled words.