1.0.6 • Published 4 years ago

grammarly v1.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Gramarly

Simple grammarly package.

Installation

npm install @defrindr/grammarly --save

Or

npm install grammarly --save

Example

const grammarly = require('grammarly');

(async function() {
    let correction = await grammarly('i wont to be slep').catch(e => e);
    console.log(correction);
})();

Response :

{
  original: '"i wont to be slep"',
  correctText: '"I want to be sleeping"',
  correction: [
    {
      type: 'spell',
      word: 'I',
      definition: 'refers to the speaker or writer'
    },
    { type: 'spell', word: 'want', definition: null },
    { type: 'grammar', word: 'sleeping', definition: null }
  ]
}

TODOs

  • Change response to json
  • Add french grammar

License

This project under MIT LICENSE

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago