Command line spellcheck class
$params = array(); $params['spell_command'] = 'ispell -d american -a'; $params['use_proc_open'] = false; // (check_php_version(4,3)) $params['temp_dir'] = '/tmp/'; // $attachment_dir $params['userdic'] = array(); // user's dictionary $params['debug'] = true;
$spell = new cmd_spell($params); // check $spell->error buffer
$text = "Quick brownn fox brownn\n\nbrownn squirrel.\ntwentytwo owttnewt";
$results = $spell->check_text($text); // check $spell->error buffer // parse $results
Class | Description |
---|---|
cmd_spell | Command line spellcheck class, compatible with ispell and aspell. |
Documentation generated on Sun, 22 Nov 2009 17:36:20 +0200 by phpDocumentor 1.4.3