/plugins/squirrelspell/class/cmd_spell.php

Description

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

Classes
Class Description
cmd_spell Command line spellcheck class, compatible with ispell and aspell.

Documentation generated on Fri, 18 Apr 2014 04:17:12 +0200 by phpDocumentor 1.4.3