passive-aggressor

0.1.1 • Public • Published

Passive Aggressor

Passive Aggressor is a passive voice obliterator for contracts in Common Form. It is an annotator module for commonform-critique.

License: Apache 2.0

Tests

var passiveAggressor = require('passive-aggressor')
var assert = require('assert')
 
assert.deepEqual(
  passiveAggressor( { content: [ 'Bob was seen by three witnesses, and the witnesses were known to be in the area.' ] } ),
  [ { message: 'The phrase "was seen" is passive voice.',
      level: 'info',
      path: [ 'content', 0 ],
      source: 'passive-aggressor',
      url: null },
    { message: 'The phrase "were known" is passive voice.',
      level: 'info',
      path: [ 'content', 0 ],
      source: 'passive-aggressor',
      url: null } ]
)

From orrick-commonform/board-resolutions.commonform:

assert.deepEqual(
  passiveAggressor( { content: [ "Resolved further: That each stock sale authorized in the above resolution shall be made pursuant to a stock purchase agreement in substantially the form attached hereto as {Form(s) Of Stock Purchase Agreement}." ] } ),
  [ { message: 'The phrase "be made" is passive voice.',
      level: 'info',
      path: [ 'content', 0 ],
      source: 'passive-aggressor',
      url: null } ]
)

Package Sidebar

Install

npm i passive-aggressor

Weekly Downloads

2

Version

0.1.1

License

Apache-2.0

Last publish

Collaborators

  • anseljh