PHP Classes

Spell Checker: Text spell checking based only in PHP code

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   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
Description 

Author

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
Winner


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: 170 Down7 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%1
Total:3,480
This week:0
All time:971
This week:673Up
 User Ratings  
 
 All time
Utility:63%StarStarStarStar
Consistency:84%StarStarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:3098