1.0.0 • Published 8 years ago

hubspell-speller v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hubspell-speller

npm version dependencies Build Status Build status

HubSpell spell checker.

Installation

Install hubspell-speller by running:

$ npm install --save hubspell-speller

Documentation

speller.getSuggestions(text, options, callback)

Kind: static method of speller
Summary: Get suggestions for incorrect words from a text
Access: public

ParamTypeDescription
textStringtext
optionsObjectoptions
options.languageStringlanguage
options.ignoreArray.<String> | Array.<RegExp>ignore patterns
callbackfunctioncallback (error, suggestions)

Example

speller.getSuggestions('Hello Worl', {
  language: 'en_US'
}, function(error, suggestions) {
  if (error) throw error;

  console.log(suggestions.Worl);
});

Support

If you're having any problem, please raise an issue on GitHub and the HubSpell team will be happy to help.

Tests

Run the test suite by doing:

$ gulp test

Contribute

Before submitting a PR, please make sure that you include tests, and that jshint runs without any warning:

$ gulp lint

License

The project is licensed under the MIT license.