PHP Classes

Spell Checker: Text spell checking based only in PHP code

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 3,480 All time: 971 This week: 673Up
Version License Categories
spell_checker 1.0.0Free for non-comm...Text processing


This class is meant to check the spelling of texts using only base PHP commands, thus not using any special purpose extension.

It uses a dictionary text file named as its spelling knowledge base.

For greater performance the class uses the dictionary words (currently almost 40,000) to build a dynamic hashed lookup table.

The class can also provide suggestions for the misspelled words that are found.

The dictionary file can be updated to include any missing words.

Innovation Award
PHP Programming Innovation award winner
December 2004

Prize: One book of choice by O'Reilly
The applications that let the users compose text, for instance, of articles or e-mail messages, can benefit of text spelling features as they let the users review and eventually fix spelling mistakes before submitting the final version of the texts that are composed.

PHP comes with text spelling extensions like pspell but in some installations these extensions are not available.

This class provides a text spelling solution completely based on PHP code that only uses basic functions

The class makes it possible to provide text spelling features without depending on the availability of PHP spelling extensions.

Manuel Lemos
Picture of Reza Salehi
Name: Reza Salehi <contact>
Classes: 18 packages by
Country: Canada Canada
Age: 44
All time rank: 594 in Canada Canada
Week rank: 245 Down8 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file dictionary.txt Data knowlodge base
Plain text file dictionary_class.php Class spell checker main class
Accessible without login HTML file index.htm Data input form
Accessible without login Plain text file index.php Example script to use the class

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:971
This week:673Up
 User Ratings  
 All time