JSPM

passive-aggressor

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q37780F
  • 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 will be a support module for commonform-critique.

So far, Passive Aggressor relies on the simple passive-voice module by btford.

License: Apache 2.0

Tests

var passiveAggressor = require('passive-aggressor')
var assert = require('assert')

assert.deepEqual(
  passiveAggressor({ content: [ 'Bob was hit by a bus.' ] }),
  [ { message: 'The phrase "was hit" is passive voice.',
    level: 'info',
    path: [ 'content', 0 ],
    source: 'passive-aggressor',
    url: null } ]
)