Login   Register  
PHP Classes
elePHPant
Icontem

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
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-12-02 (9 years ago) RSS 2.0 feedStarStarStar 46%Total: 3,390 This week: 2All time: 950 This week: 952Down
Version License Categories  
spell_checker 1.0.0Free for non-commercial...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: 34
All time rank: 533 in Canada Canada
Week rank: 321 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  
 0%1Total:3,390All time:950
 This week:2This week:952Down
 User Ratings  
 
 All time
Utility:62%StarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:1821