0.2.1 • Published 9 years ago

doubleplus-numbers v0.2.1

Weekly downloads
169
License
Apache-2.0
Repository
github
Last release
9 years ago

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 } ])