Helper class for spellchecking with Googielspell and PSpell support.
| package |
Framework |
|---|---|
| subpackage |
Utils |
__construct(string $lang = 'en')
stringLanguage code
add_word(string $word)
stringThe word to add
check(string $text, boolean $is_html = false) : boolean
stringText content for spellchecking
booleanEnables HTML-to-Text conversion
booleanTrue when no mispelling found, otherwise false
error() : string
stringError message
found() : integer
integerNumber of mispellings
get() : array
arraySpellchecking result. An array indexed by word.
get_suggestions(string $word) : array
stringThe word
arraySuggestions list
get_words(string $text = null, $is_html = false) : array
stringThe content for spellchecking. If empty content used for check() method will be used.
arrayList of misspelled words
get_xml() : string
stringXML content
html2text( $text)
is_exception(string $word) : boolean
stringThe word
booleanTrue if the word is an exception, False otherwise
languages()
load_dict()
remove_word(string $word)
stringThe word to remove
update_dict()
matches :
engine :
backend :
lang :
rc :
error :
dict :
have_dict :