Name: node-spellchecker
Owner: Discord
Description: SpellChecker Node Module
Forked from: atom/node-spellchecker
Created: 2015-09-11 15:45:35.0
Updated: 2017-07-09 22:58:49.0
Pushed: 2015-09-25 03:12:04.0
Homepage: http://atom.github.io/node-spellchecker
Size: 615
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Native bindings to NSSpellChecker, Hunspell, or the Windows 8 Spell Check API, depending on your platform. Windows 7 and below as well as Linux will rely on Hunspell.
install spellchecker
lChecker = require 'spellchecker'
Check if a word is misspelled.
word
- String word to check.
Returns true
if the word is misspelled, false
otherwise.
Get the corrections for a misspelled word.
word
- String word to get corrections for.
Returns a non-null but possibly empty array of string corrections.
Adds a word to the dictionary. When using Hunspell, this will not modify the .dic file; new words must be added each time the spellchecker is created. Use a custom dictionary file.
word
- String word to add.
Returns nothing.