PHP Classes

Non-Word PHP Spell Checker: Detect incorrectly spelled words and suggest fixes

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 128 All time: 9,383 This week: 206Up
Version License PHP version Categories
nonword-spell-checke 1.0.2GNU General Publi...5Algorithms, PHP 5, Text processing


This class can detect incorrectly spelled words and suggest fixes.

It takes a given text string and checks its words against a dictionary of words known to be valid to determine if they are correct.

For words that seem to be incorrect, it suggest words that are similar and seem to be correct versions of those words.

This package comes with a Python script that can be used to build a dictionary from sources of texts with correctly spelled words.

Picture of Ravindu Taveesha
  Performance   Level  
Name: Ravindu Taveesha <contact>
Classes: 3 packages by
Country: Sri Lanka Sri Lanka
Age: 34
All time rank: 26794 in Sri Lanka Sri Lanka
Week rank: 161 Up1 in Sri Lanka Sri Lanka Up
Innovation award
Innovation award
Nominee: 1x



"Text: I say a horse at a canter coming up <br/>";

$spell = new SpellChecker;
'<pre>'; print_r($spell->check("I say a hrse at a canter cming up")); echo '</pre>';

  • screenshot.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file licenses.txt Doc. Documentation
Accessible without login Plain text file sample-dictionary-format Example sample dictionary format
Plain text file spellchecker.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,383
This week:206Up