There are several types of applications that permit their users to compose text documents for publishing. Spell checking is important to not let the eventual mistakes go unnoticed before publishing.
Spell checker applications use dictionaries that contain a great part of the words in use of a given idiom. These dictionaries are used to verify whether the given words exist and eventually suggest alternatives based on similar known words.
The class provides an implementation of a spell checking component that stores its dictionary in a MySQL database, providing efficient word lookup and alternative suggestions.
This way it can work well in restricted hosting environments that provide access to MySQL databases, but not to special PHP extensions dedicated to spell checking .
This class can be used to check the spelling of text.
It uses a MySQL database table to store the dictionary of valid words.
It can process a text and return all words that seem to be wrong. It may also highlight the wrong words using HTML tags to change the presentation style of the words to be highlighted.
For wrong words it may also provide a list of suggestions of words with similar sounding using the soundex algorithm.