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 Mon, 13 Jan 2020 04:22:03 +0100 by phpDocumentor 1.4.3