Spellchecking backend implementation to work with an After the Deadline service See http://www.afterthedeadline.com/ for more information
package |
Framework |
---|---|
subpackage |
Utils |
languages() : array
array
Indexed list of language codes
check(string $text) : bool
string
Text content for spellchecking
bool
True when no mispelling found, otherwise false
get_suggestions(string $word) : array
string
The word
array
Suggestions list
get_words(string $text = null) : array
string
The content for spellchecking. If empty content
used for check() method will be used.
array
List of misspelled words
__construct($dict, $lang)
error() : string
string
Error message
SERVICE_HOST
SERVICE_PORT
MAX_SUGGESTIONS
matches :
content :
langhosts :
lang :
error :
dictionary :
separator :