PHP Classes

Spell Corrector: Suggest corrected spelling text in pure PHP

Recommend this page to a friend!

  Author Author  
Name: Felipe Ribeiro is available for providing paid consulting. Contact Felipe Ribeiro .
Classes: 2 packages by
Country: Brazil Brazil
Age: 32
All time rank: 31925 in Brazil Brazil
Week rank: 169 Up8 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used to suggest the correct spelling of text similar to Google "Did you mean" but based on a pure PHP implementation of Peter Norvig correct spelling suggestion algorithm.

It takes a given word and returns a suggestion of the probable correct spelling of the word.

The class can build a dictionary with correctly spelled words from a training text document. The dictionary can be stored in a cache file by serializing the dictionary array.

A sample training text document can be obtained from Peter Norvig site.

  Classes of Felipe Ribeiro  >  Spell Corrector  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Spell Corrector
Base name: spellcorrector
Description: Suggest corrected spelling text in pure PHP
Version: 0.1
PHP version: 5.0
License: BSD License
All time users: 4534 users
All time rank: 595
Week users: 6 users
Week rank: 163 Up
  Groups   Rate classes User ratings   Trackback   Applications   Files Files  

Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Innovation Award  
PHP Programming Innovation award winner
October 2008

Prize: One copy of the Zend Studio
Google provides spelling suggestions to search keywords that seem misspelled.

There is already a PHP class that uses that Google search feature to suggest corrections to given text strings that may be misspelled.

This class provides a a similar solution to Google "Did you mean" to suggest the correct spelling of words. It uses pure PHP code and does not require accessing remote site.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Perfect (100%) Good (95%) Sufficient (79%) - - - Sufficient (67%) 526
Month: Not yet rated by the users

  Pages that reference this package  
Building a PHP and MySQL search function
I’ve been working on the search feature of komparison...
Você quis dizer com PHP
Recentemente precisei implementar um sistema de correção ortográfica “à la Google”...

Latest pages that reference packages Latest pages that reference packages

  Applications that use this package  
No pages of applications that use this class were specified.

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 README Doc. README file
Plain text file SpellCorrector.php Class The class itself

Install with Composer Install with Composer - Download Download all files: spellcorrector.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.