Constructor
new Spelling(speller, content)
Create a Spelling class
- Source:
Parameters:
Name | Type | Description |
---|---|---|
speller |
NSpell
|
an nspell instance |
content |
string
|
the content to be spell checked |
Methods
_generateStrings() → {Array.<string>}
Generates misspelt strings. Should only be called during class instantiation.
- Source:
Returns:
- Type:
-
Array.<string>
An array of misspelt strings
_generateSuggestions() → {Suggestions}
Generates a Suggestions object. Should only be called during class instantiation.
- Source:
_generateWords() → {Array.<Word>}
Generates array of misspelt Words by checking the spelling of each bit of cleaned text.
Should only be called during class instantiation.
- Source:
- See: