rcube_spellcheck_engine

Interface class for a spell-checking backend

package

Framework

subpackage

Utils

Methods

Default constructor

__construct($dict, $lang) 

Arguments

$dict

$lang

Return a list of languages supported by this backend

languages() : array
abstract

Response

array

Indexed list of language codes

Set content and check spelling

check(string $text) : bool
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
abstract

Arguments

$word

string

The word

Response

array

Suggestions list

Returns misspelled words

get_words(string $text = null) : array
abstract

Arguments

$text

string

The content for spellchecking. If empty content

                used for check() method will be used.

Response

array

List of misspelled words

Returns error message

error() : string

Response

string

Error message

Constants

MAX_SUGGESTIONS

MAX_SUGGESTIONS

Properties

lang

lang : 

error

error : 

dictionary

dictionary : 

separator

separator :