Class type Goog.​Spell.​spellCheck

class type ['a]spellCheck = object..end

Inherits


method checkBlock : Js.js_string Js.t -> unit Js.meth

Checks spelling for a block of text.

method checkWord : Js.js_string Js.t -> int Js.meth

Checks spelling for a single word. Returns the status of the supplied word, or UNKNOWN if it's not cached. If it's not cached the word is added to a queue and checked with the verification implementation with a short delay. Returns The status of the supplied word, or UNKNOWN if it's not cached.

method getLanguage : Js.js_string Js.t Js.meth

Returns language. Returns Content language.

method getSuggestions : 
Js.js_string Js.t -> Js.js_string Js.t Js.js_array Js.t Js.meth

Returns suggestions for the given word. Returns An array of suggestions for the given word.

method processPending : unit Js.meth

Processes pending words unless a lookup operation has already been queued or is in progress.

method setLanguage : Js.js_string Js.opt -> unit Js.meth

Sets language.

method setLookupFunction : 
(Js.js_string Js.t Js.js_array Js.t ->
'a -> 'a callback -> unit)
Js.callback -> unit Js.meth

Sets the lookup function.

method setWordStatus : 
Js.js_string Js.t ->
int -> Js.js_string Js.t Js.js_array Js.t Js.opt -> unit Js.meth

Sets a words spelling status.