annotate Common Forms containing archaism
import archaic from 'commonform-archaic'
import assert from 'node: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
}
]
)