textlint-rule-terminology
![Node.js CI status](https://github.com/sapegin/textlint-rule-terminology/workflows/Node.js%20CI/badge.svg)
Textlint rule to check and fix terms, brands and technologies spelling in your tech writing in English.
For example:
- Javascript → JavaScript
- NPM → npm
- front-end → frontend
- website → site
- Internet → internet
(You can customize the rules as you wish.)
![](https://d3vv6lp55qjaqc.cloudfront.net/items/1p0s3e2p1U1m1r3N2Q41/terminology.png)
Installation
npm install textlint-rule-terminology
Usage
textlint --fix --rule terminology Readme.md
Configuration
You can configure the rule in your .textlintrc
:
{
"rules": {
"terminology": {
"defaultTerms": true,
"skip": ["Blockquote"],
"terms": [
"JavaScript",
"ESLint",
"Sass",
"Less",
"npm",
["front[- ]end(\\w*)", "frontend$1"],
["back[- ]end(\\w*)", "backend$1"],
["web[- ]?site(s?)", "site$1"],
["hot[- ]key", "hotkey"],
["repo\\b", "repository"],
["CLI tool(s?)", "command line tool$1"],
["build system(s?)", "build tool$1"],
["id['’]?s", "IDs"],
["(\\w+[^.?!]\\)? )webpack", "$1webpack"],
["(\\w+[^.?!]\\)? )internet", "$internet"]
],
"terms": "~/terms.jsonc",
"terms": "@johnsmith/terms",
"exclude": [
"CSS"
]
}
}
}
Check the default terminology. Read more about configuring textlint.
Tips & tricks
Use textlint-filter-rule-comments to disable terminology check for particular paragraphs:
<!-- textlint-disable terminology -->
Oh my javascript!
<!-- textlint-enable -->
Other textlint rules
Change log
The change log can be found on the Releases page.
Contributing
Bug fixes are welcome, but not new features. Please take a moment to review the contributing guidelines.
This software has been developed with lots of coffee, buy me one more cup to keep it going.
![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/lato-orange.png)
Authors and license
Artem Sapegin and contributors.
MIT License, see the included License.md file. Also see the project status.