bugybunny / retext-redundant-acronyms

Check for redundant acronyms (ATM machine)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

retext-redundant-acronyms Build Status Coverage Status

Check for redundant acronyms (for example, ATM machine > ATM) with retext.

Fun fact, this is called RAS syndrome (redundant acronym syndrome syndrome).

Installation

npm:

npm install retext-redundant-acronyms

Usage

var retext = require('retext');
var redundantAcronyms = require('retext-redundant-acronyms');
var report = require('vfile-reporter');

retext()
  .use(redundantAcronyms)
  .process('Where can I find an ATM machine?', function (err, file) {
    console.error(report(err || file));
  });

Yields:

  1:21-1:32  warning  Replace `ATM machine` with `ATM`  atm-machine  retext-redundant-acronyms

⚠ 1 warning

API

retext().use(redundantAcronyms)

Check for redundant acronyms (for example, ATM machine).

License

MIT © Titus Wormer

About

Check for redundant acronyms (ATM machine)

License:MIT License


Languages

Language:JavaScript 100.0%