rcube_spellcheck_pspell

Extends \rcube_spellcheck_engine

Spellchecking backend implementation to work with Pspell

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

Initializes PSpell dictionary

init() 

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

MAX_SUGGESTIONS

MAX_SUGGESTIONS
inherited

Properties

matches

matches : 

lang

lang : 
inherited

error

error : 
inherited

dictionary

dictionary : 
inherited

separator

separator : 
inherited