1.0.6 • Published 7 years ago

sentence-compare v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

sentence-compare

A comparison between two English sentences.

Installation

$ npm install sentence-compare

Usage

Enter a standard statement, and a custom statement that needs to compare to a standard statement

Example:

var sentenceCompare = require('sentence-compare')

sentenceCompare('Enjoy the freedom of life', 'Enjoy there of life bower') // sentenceCompare(standardSentence, customSentence)

/* output:
            { content:
             [ 'Enjoy',
               ' ',
               { type: 'wrong', content: 'the' },
               ' ',
               { type: 'wrong', content: 'freedom' },
               ' ',
               'of',
               ' ',
               'life' ],
            rate: 0.6 }
*/
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago