File/plugins/spellcheck/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

  • version: $Id: cmd_spell.php 1249 2008-04-05 07:34:50Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Classes
Class Description
 class 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