rcube_spellcheck_atd

Extends \rcube_spellcheck_engine

Spellchecking backend implementation to work with an After the Deadline service See http://www.afterthedeadline.com/ for more information

package

Framework

subpackage

Utils

Methods

Return a list of languages supported by this backend

languages() : array
inherited abstract

Response

array

Indexed list of language codes

Set content and check spelling

check(string $text) : bool
inherited abstract

Arguments

$text

string

Text content for spellchecking

Response

bool

True when no mispelling found, otherwise false

Returns suggestions for the specified word

get_suggestions(string $word) : array
inherited abstract

Arguments

$word

string

The word

Response

array

Suggestions list

Returns misspelled words

get_words(string $text = null) : array
inherited abstract

Arguments

$text

string

The content for spellchecking. If empty content

                used for check() method will be used.

Response

array

List of misspelled words

Default constructor

__construct($dict, $lang) 
inherited

Arguments

$dict

$lang

Returns error message

error() : string
inherited

Response

string

Error message

Constants

SERVICE_HOST

SERVICE_HOST

SERVICE_PORT

SERVICE_PORT

MAX_SUGGESTIONS

MAX_SUGGESTIONS
inherited

Properties

matches

matches : 

content

content : 

langhosts

langhosts : 

lang

lang : 
inherited

error

error : 
inherited

dictionary

dictionary : 
inherited

separator

separator : 
inherited