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 This week: 1All time: 9,366 This week: 571Up
Version License PHP version Categories
nonword-spell-checke 1.0.2GNU General Publi...5Algorithms, PHP 5, Text processing
Description 

Author

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: 33
All time rank: 26744 in Sri Lanka Sri Lanka
Week rank: 420 Up1 in Sri Lanka Sri Lanka Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
require_once('spellchecker.php');

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

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





Screenshots  
  • screenshot.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file dictionary.py 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  
 83%
Total:128
This week:1
All time:9,366
This week:571Up