rcube_spellcheck_enchant

Extends \rcube_spellcheck_engine

Spellchecking backend implementation to work with Pspell

package

Framework

subpackage

Utils

Methods

Default constructor

__construct( $dict,  $lang) 
inherited

Arguments

$dict

$lang

Set content and check spelling

check(string $text) : boolean
inherited abstract

Arguments

$text

string

Text content for spellchecking

Response

boolean

True when no mispelling found, otherwise false

Returns error message

error() : string
inherited

Response

string

Error message

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

Initializes Enchant dictionary

init() 

Return a list of languages supported by this backend

languages() : array
inherited abstract

Response

array

Indexed list of language codes

Constants

MAX_SUGGESTIONS

MAX_SUGGESTIONS
inherited

Properties

enchant_broker

enchant_broker : 

Type(s)

enchant_dictionary

enchant_dictionary : 

Type(s)

matches

matches : 

Type(s)

lang

lang : 
inherited

Type(s)

error

error : 
inherited

Type(s)

dictionary

dictionary : 
inherited

Type(s)

separator

separator : 
inherited

Type(s)