Encoding a Custom Dictionary

PHP Spell Check > Documentation > Tutorials > Encoding a Dictionary

SourceCode:
#PHP Source Code
require "/phpspellcheck/include.php"
$spellcheckObject = new PHPSpellCheck();
$strWholeDict = file_get_contents("wordlist.txt");
$ArrWholeDict = explode("\n",$strWholeDict);
$spellcheckObject = new PHPSpellCheck();
echo $spellcheckObject  -> BuildDictionary( $ArrWholeDict );

Encoding a custom dictionary is quite easy using the PHPSpellCheck core class. Save the resultant data as a .dic file in /phpspellcheck/dictionaries.

An example exists in your /phpspellcheck/examples folder #15