JSPM

passive-aggressor

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q37786F
  • License Apache-2.0

Passive voice obliterator for Common Form

Package Exports

  • passive-aggressor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (passive-aggressor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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