2.0.1 • Published 5 years ago

commonform-archaic v2.0.1

Weekly downloads
5
License
BlueOak-1.0.0
Repository
github
Last release
5 years ago

commonform-archaic

annotate Common Forms containing archaism

var archaic = require('commonform-archaic')
var assert = require('assert')

assert.deepStrictEqual(
  archaic({ content: ['comes now the owner thereof'] }),
  [
    {
      message: 'The phrase "comes now" is archaic.',
      level: 'info',
      path: ['content', 0],
      source: 'commonform-archaic',
      url: null
    },
    {
      message: 'The word "thereof" is archaic.',
      level: 'info',
      path: ['content', 0],
      source: 'commonform-archaic',
      url: null
    }
  ]
)