doubleplus-numbers

0.2.1 • Public • Published

doubleplus-numbers

doubleplus-numbers provides a Common Form annotator to find and identify redundant and repeated number(s) and numeral(s).

Build Status

var assert = require('assert')
var annotator = require('doubleplus-numbers')
 
assert.deepEqual(
  annotator({ content: [ 'Give me two (2) of those. Four (4) of the other one, too.' ] }),
  [ { message: '"two (2)" repeats a written number and numeral, which is redundant and error-prone',
      level: "info",
      path: [ 'content', 0 ],
      source: 'doubleplus-numbers',
      url: null },
    { message: '"Four (4)" repeats a written number and numeral, which is redundant and error-prone',
      level: "info",
      path: [ 'content', 0 ],
      source: 'doubleplus-numbers',
      url: null } ])

Package Sidebar

Install

npm i doubleplus-numbers

Weekly Downloads

735

Version

0.2.1

License

Apache-2.0

Last publish

Collaborators

  • anseljh