ssbc/paulcbetts-spellchecker-prebuilt

Name: paulcbetts-spellchecker-prebuilt

Owner: Secure Scuttlebutt Consortium

Description: Forked from @paulcbetts/spellchecker to add automated prebuilds

Forked from: paulcbetts/node-spellchecker

Created: 2017-12-11 00:06:58.0

Updated: 2017-12-11 05:38:54.0

Pushed: 2017-12-11 05:41:40.0

Homepage: http://atom.github.io/node-spellchecker

Size: 2592

Language: C++

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SpellChecker Node Module Build Status Build status

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.

Installing
install spellchecker
Using
lChecker = require 'spellchecker'
SpellChecker.isMisspelled(word)

Check if a word is misspelled.

word - String word to check.

Returns true if the word is misspelled, false otherwise.

SpellChecker.getCorrectionsForMisspelling(word)

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.

SpellChecker.add(word)

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.