Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/admhlt/retext-usage

Warn about incorrect English usage with retext
https://github.com/admhlt/retext-usage

Last synced: about 2 months ago
JSON representation

Warn about incorrect English usage with retext

Awesome Lists containing this project

README

        

# retext-usage

Check phrases for incorrect English usage with [**retext**][retext].

## Usage

```js
var retext = require('retext');
var usage = require('retext-usage');
var report = require('vfile-reporter');

retext()
.use(usage)
.process([
'Repeat ad nauseum.',
'Get some money from the ATM machine.',
'This is majorly inappropriate.'
].join('\n'), function (err, file) {
console.log(report(file));
});
```

Yields:

```txt

1:8-1:18 warning Replace “ad nauseum” with “ad nauseam” ad nauseum
2:25-2:36 warning Replace “ATM machine“ with “ATM” ATM machine
3:9-3:16 warning Replace “majorly” with “extremely”, or remove it majorly

⚠ 3 warnings
```

## License

[MIT][license] © [Adam Hollett][author]

[releases]: https://github.com/wooorm/retext-usage/releases

[license]: LICENSE

[author]: http://adamhollett.com

[retext]: https://github.com/wooorm/retext