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).