PHP Classes

MySQL Spell Checker: Spell check texts with a MySQL table as dictionary

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 2,451 This week: 1All time: 1,587 This week: 571Up
Version License Categories
mysqlspellchecker 1.0.0GNU General Publi...HTML, Databases, Text processing, Val...
Description 

Author

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.

Innovation Award
PHP Programming Innovation award nominee
October 2005
Number 7
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 .

Manuel Lemos
Picture of sam
Name: sam <contact>
Classes: 3 packages by
Country: United Kingdom
Age: 35
All time rank: 47325 in United Kingdom
Week rank: 420 Up10 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example file
Plain text file spell-checker-class.php Class Main spell checker class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,451
This week:1
All time:1,587
This week:571Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1265
 
Very nicely done.
15 years ago (F Philip DeGeorge)
70%StarStarStarStar