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