2.0.1 • Published 5 years ago
commonform-archaic v2.0.1
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
}
]
)