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

https://github.com/sapegin/textlint-rule-stop-words

Textlint rule to find filler words, buzzwords and clichés
https://github.com/sapegin/textlint-rule-stop-words

buzzwords cliche fillers linter textlint textlint-rules

Last synced: 10 months ago
JSON representation

Textlint rule to find filler words, buzzwords and clichés

Awesome Lists containing this project

README

          

# textlint-rule-stop-words

[![textlint fixable rule](https://img.shields.io/badge/textlint-fixable-green.svg?style=social)](https://textlint.github.io/) [![npm](https://img.shields.io/npm/v/textlint-rule-stop-words.svg)](https://www.npmjs.com/package/textlint-rule-stop-words) [![Node.js CI status](https://github.com/sapegin/textlint-rule-stop-words/workflows/Node.js%20CI/badge.svg)](https://github.com/sapegin/textlint-rule-stop-words/actions)

[textlint](https://github.com/textlint/textlint) rule to find filler words, buzzwords, and clichés — 1700+ words and phrases in English.

For example:

- and etc.
- the month of
- thick as a brick
- utilize

(You can disable some words or add your own.)

![](https://d3vv6lp55qjaqc.cloudfront.net/items/2P3W3w0d1N0K421H333m/textlint-rule-stop-words.png)

[![Washing your code. A book on clean code for frontend developers](https://sapegin.me/images/washing-code-github.jpg)](https://sapegin.me/book/)

## Installation

```shell
npm install textlint-rule-stop-words
```

## Usage

```shell
textlint --fix --rule stop-words Readme.md
```

## Configuration

You can configure the rule in your `.textlintrc`:

```js
{
"rules": {
"stop-words": {
// Your options here
}
}
}
```

Read more about [configuring textlint](https://github.com/textlint/textlint/blob/master/docs/configuring.md).

### `defaultWords` (default: `true`)

Whether to load the [default dictionary](./dict.txt). Example:

```js
{
"rules": {
"stop-words": {
// Don't load default dictionary
"defaultWords": false,
}
}
}
```

### `skip` (default `['BlockQuote']`)

Syntax elements to skip. By default skips blockquotes. Example:

```js
{
"rules": {
"stop-words": {
// Don't check terms inside links
"skip": ["Link"],
}
}
}
```

See [all available element types](https://github.com/textlint/textlint/blob/master/packages/%40textlint/ast-node-types/src/ASTNodeTypes.ts).

### `words`

Additional words.

Could be an array of words:

```js
{
"rules": {
"stop-words": {
// List of words
"words": [
// Exact words
["etc."],
["you can"],
// With a replacement
["blacklist", "denylist"]
],
}
}
}
```

A path to a text file:

```js
{
"rules": {
"stop-words": {
// Load words from a file
"words": "~/stop-words.txt"
}
}
}
```

Check out [the default dictionary](./dict.txt).

### `exclude`

If you don’t like some of [the default words](./dict.txt), you can _exclude_ them. For example, to exclude these entries:

```txt
// dict.txt
utilize > use
period of time
```

You need to copy the exact entry (for words with replacement, just the first element) to the `exclude` option of the `stop-words` rule in your Textlint config:

```js
{
"rules": {
"stop-words": {
// Excludes terms
"exclude": [
"utilize",
"period of time"
]
}
}
}
```

## Tips & tricks

Use [textlint-filter-rule-comments](https://github.com/textlint/textlint-filter-rule-comments) to disable stop-words check for particular paragraphs:

```markdown

Oh my javascript!

```

## Sources

- Grammar & Writing for Creators
- [297 Flabby Words and Phrases That Rob Your Writing of All Its Power](https://smartblogger.com/weak-writing/)
- [no-cliches](https://github.com/dunckr/no-cliches/)
- [fillers](https://github.com/wooorm/fillers/)
- [hedges](https://github.com/wooorm/hedges/)
- [weasels](https://github.com/wooorm/weasels/)
- [buzzwords](https://github.com/wooorm/buzzwords/)
- [retext-simplify](https://github.com/wooorm/retext-simplify/)

## Other textlint rules

- [textlint-rule-apostrophe](https://github.com/sapegin/textlint-rule-apostrophe) — correct apostrophe usage
- [textlint-rule-diacritics](https://github.com/sapegin/textlint-rule-diacritics) — words with diacritics
- [textlint-rule-terminology](https://github.com/sapegin/textlint-rule-terminology) — correct terms spelling
- [textlint-rule-title-case](https://github.com/sapegin/textlint-rule-title-case) — fix titles to use AP/APA style

## Change log

The change log can be found on the [Releases page](https://github.com/sapegin/textlint-rule-stop-words/releases).

## Contributing

Bug fixes are welcome, but not new features. Please take a moment to review the [contributing guidelines](Contributing.md).

## Sponsoring

This software has been developed with lots of coffee, buy me one more cup to keep it going.

Buy Me A Coffee

## Authors and license

[Artem Sapegin](https://sapegin.me) and [contributors](https://github.com/sapegin/textlint-rule-stop-words/graphs/contributors).

MIT License, see the included [License.md](License.md) file. Also see the [project status](https://github.com/sapegin/textlint-rule-stop-words/discussions/45).