Login   Register  
PHP Classes

Spell Checker: Text spell checking based only in PHP code

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Reza Salehi
Name: Reza Salehi <e-mail contact>
Packages: 18 Browse all classes by Reza Salehi Browse all classes by
Country: Canada Canada - PHP jobs in Canada
Age: 34
All time rank: 523 in Canada Canada
Week rank: 232 Down8 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of Reza Salehi  >  Spell Checker  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Spell Checker
Base name: spell_checker
Description: Text spell checking based only in PHP code
Version: -
PHP version: -
License: Free for non-commercial use
All time users: 3349 users
All time rank: 955
Week users: 2 users
Week rank: 1191 Down
  Groups   Freshmeat project   Rate classes User ratings  
  Dependents   Applications   Files Files  

Group folder image Text processing Manipulating and validating text data View top rated classes

  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

  Freshmeat project  
Spell Checker
Project record: spellchecker
Popularity score: 14.7
Vitality score: 1.0

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (62.5%) Good (85.0%) - Sufficient (70.0%) - - Not sure (46.8%) 1783
Month: Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
lib_dictionary Recommended Content: English wordlist

  Applications that use this class  
Link Description
Powerful Online spell checker! this program uses the spell checker class to find misspled words and also it gives suggestion for currect spelling.
Add link image If you know an application of this package, send a message to the author to add a link here.
  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

Download Download all files: spell_checker.tar.gz spell_checker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.