interface SpellProvider (View source)

Methods

public
array
checkWords(string $locale, array $words)

Spellchecks an array of words.

public
array
getSuggestions(string $locale, string $word)

Returns suggestions of for a specific word.

Details

array checkWords(string $locale, array $words)

Spellchecks an array of words.

Parameters

string $locale

Locale code to check

array $words

List of words to spellcheck.

Return Value

array

List of misspelled words.

array getSuggestions(string $locale, string $word)

Returns suggestions of for a specific word.

Parameters

string $locale

Locale code to check

string $word

Specific word to get suggestions for.

Return Value

array

List of suggestions for the specified word.