Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 981 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 981 Bytes

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