Project: retextjs/retext-intensify

Package: retext-intensify@6.2.0

  1. Dependents: 0
  2. retext plugin to check for weak and mitigating wording
  1. unified 182
  2. plugin 136
  3. retext 41
  4. retext-plugin 26
  5. phrase 5
  6. simple 2
  7. simpler 2
  8. synonym 2
  9. alternative 2


Build Coverage Downloads Size Sponsors Backers Chat

retext plugin to check for weak and mitigating wording.


What is this?

This package is a unified (retext) plugin to check for words that are weak: weasels, hedges, and fillers.

When should I use this?

You can opt-into this plugin when you’re dealing with content that might contain vague wording, and have authors that can fix that content.


This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, or 18.0+), install with npm:

npm install retext-intensify

In Deno with esm.sh:

import retextIntensify from 'https://esm.sh/retext-intensify@6'

In browsers with esm.sh:

<script type="module">
  import retextIntensify from 'https://esm.sh/retext-intensify@6?bundle'


Say our document example.txt contains:

Some people say there are quite some
problems, apparently.

…and our module example.js looks as follows:

import {read} from 'to-vfile'
import {reporter} from 'vfile-reporter'
import {retext} from 'retext'
import retextIntensify from 'retext-intensify'

cosnt file = await retext()
  .process(await read('example.txt'))


…now running node example.js yields:

    1:1-1:5  warning  Don’t use `Some`, it’s vague or ambiguous       weasel  retext-intensify
  1:13-1:16  warning  Don’t use `say`, it lessens impact              hedge   retext-intensify
  1:27-1:32  warning  Don’t use `quite`, it’s vague or ambiguous      weasel  retext-intensify
  1:33-1:37  warning  Don’t use `some`, it’s vague or ambiguous       weasel  retext-intensify
  2:11-2:21  warning  Don’t use `apparently`, it doesn’t add meaning  filler  retext-intensify

⚠ 5 warnings


This package exports no identifiers. The default export is retextIntensify.

unified().use(retextIntensify[, options])

Check for weak and mitigating wording.


Configuration (optional).


Phrases not to warn about (Array<string>).


Each message is emitted as a VFileMessage on file, with the following fields:


Name of this plugin ('retext-intensify').


Category of warning ('filler', 'hedge', or 'weasel')


Current not ok phrase (string).


Empty array to signal that actual should be removed ([]).


This package is fully typed with TypeScript. It exports the additional type Options.


Projects maintained by the unified collective are compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18.0+. Our projects sometimes work with older versions, but this is not guaranteed.


See contributing.md in retextjs/.github for ways to get started. See support.md for ways to get help.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.


MIT © Titus Wormer