Skip to content

A convenient chainable wrapper for tigitz/php-spellchecker

Notifications You must be signed in to change notification settings

forrestedw/spellchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Spellchecker

A convenient chainable wrapper for tigitz/php-spellchecker

Usage

use Forrestedw\SpellChecker\SpellChecker;

//Initiate the SpellChecker
$spellChecker = (new SpellChecker);

//Whitelist words. Optional.
$spellChecker->whiteList(['Lett','theese','spellins','goo']);


//Set preferred words to select from corrctions. Optional.
$spellChecker->prefer(['These','Words','Are','Most','Important','To','Me']);

$correction = $spellChecker->check('A word or sentence');

About

A convenient chainable wrapper for tigitz/php-spellchecker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages