bing-spell-checker

0.1.1 • Public • Published

Bing Spell Checker

This node.js module calls Bing's Spell Check API with the provided text. It returns corrected text if API suggests correction.

Details are here: Bing Spell Check

Install

npm install bing-spell-checker

How to use?

You need an API access key. You can get it from here: Bing Spell Check API Access

Reading access key through environment variables are a secure way of accessing secret information. Therefore, you should consider setting access key to environment variables.

'use strict'
 
const BingSpellChecker = require('bing-spell-checker')
 
BingSpellChecker.init({
  'key': process.env.BING_SPELL_CHECK_API_KEY
})
 
let promise = BingSpellChecker.check('It workd!')
promise.then(function (result) {
  console.log(result) // "Stuff worked!"
}, function (err) {
  console.log(err) // Error: "It broke"
})

TODO

  • Provide a threshold value

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    4
  • 0.1.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i bing-spell-checker

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

7.6 kB

Total Files

5

Last publish

Collaborators

  • ilhan-mstf