Source for file Pspell.php
Documentation is available at Pspell.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
* Pspell 'driver' for HTML_QuickForm_Rule_Spelling
* @package HTML_QuickForm_Rule_Spelling
* @author David Sanders (shangxiao@php.net)
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version Release: 0.2.0
* @link http://pear.php.net/package/HTML_QuickForm_Rule_Spelling
$pspell_config = pspell_config_create ('en');
if ($pspell_config === false ) {
PEAR ::raiseError ('Error creating pspell config');
$this->_pspell_link = pspell_new_config ($pspell_config);
* Check the presence of word in the dictionary
* @param $word Word to check
return pspell_check ($this->_pspell_link, $word);
* Generate a list of suggested words from a certain word
* @param $word Word to generate suggestion list from
return pspell_suggest ($this->_pspell_link, $word);
* Add a word to the dictionary
* @param $word Word to add to dictionary
return pspell_add_to_personal ($this->_pspell_link, $word);
return pspell_save_wordlist ($this->_pspell_link);
Documentation generated on Mon, 11 Mar 2019 15:11:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|