Source for file SpellChecker.php
Documentation is available at SpellChecker.php
* $Id: SpellChecker.php,v 1.1 2009/08/07 01:59:36 sam2kb Exp $
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
* @param $config Configuration name/value array.
$this->_config =
$config;
* Simple loopback function everything that gets in will be send back.
* @param $args.. Arguments.
* @return {Array} Array of all input arguments.
* Spellchecks an array of words.
* @param {String} $lang Language code like sv or en.
* @param {Array} $words Array of words to spellcheck.
* @return {Array} Array of misspelled words.
* Returns suggestions of for a specific word.
* @param {String} $lang Language code like sv or en.
* @param {String} $word Specific word to get suggestions for.
* @return {Array} Array of suggestions for the specified word.
* Throws an error message back to the user. This will stop all execution.
* @param {String} $str Message to send back to user.
die('{"result":null,"id":null,"error":{"errstr":"' .
addslashes($str) .
'","errfile":"","errline":null,"errcontext":"","level":"FATAL"}}');