grammarly

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i grammarly

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

5.69 kB

Total Files

5

Last publish

Collaborators

  • defrindr