#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