All Projects → sapegin → textlint-rule-terminology

sapegin / textlint-rule-terminology

Licence: MIT License
Textlint rule to check correct terms spelling

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to textlint-rule-terminology

Eyo
🦔 CLI for restoring the letter «ё» (yo) in russian texts
Stars: ✭ 119 (+271.88%)
Mutual labels:  text, linter
textlint-rule-preset-ja-engineering-paper
textlint rule preset for Japanese academic papers of enginering
Stars: ✭ 17 (-46.87%)
Mutual labels:  textlint, textlint-rule
Textlint
The pluggable natural language linter for text and markdown.
Stars: ✭ 2,158 (+6643.75%)
Mutual labels:  linter, textlint
vscode-linter
Extension for code linting, all in one package. New linters can be easily added through an extension framework.
Stars: ✭ 47 (+46.88%)
Mutual labels:  linter, textlint
Proselint
Proselint wrapper with a friendly reporter
Stars: ✭ 56 (+75%)
Mutual labels:  text, linter
textlint-rule-stop-words
Textlint rule to find filler words, buzzwords and clichés
Stars: ✭ 21 (-34.37%)
Mutual labels:  linter, textlint
Nayumi
A cute bot of Telegram.
Stars: ✭ 12 (-62.5%)
Mutual labels:  linter
allot
Parse placeholder and wildcard text commands
Stars: ✭ 51 (+59.38%)
Mutual labels:  text
Swift-Coding-Guidelines
A repository to collect best practices when programming with Swift
Stars: ✭ 17 (-46.87%)
Mutual labels:  linter
gandalf-lint
Bad Code Shall Not Pass
Stars: ✭ 29 (-9.37%)
Mutual labels:  linter
Ananas
An easy image editor integration for your Android apps.
Stars: ✭ 186 (+481.25%)
Mutual labels:  text
elvis core
The core of an Erlang linter
Stars: ✭ 43 (+34.38%)
Mutual labels:  linter
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (+15.63%)
Mutual labels:  linter
project-japanese-proofreading
テキストファイルやMarkdownファイルの日本語の文章をチェックするVS Codeの拡張機能
Stars: ✭ 81 (+153.13%)
Mutual labels:  textlint
playground
textlint online playground.
Stars: ✭ 13 (-59.37%)
Mutual labels:  textlint
septum
Context-based code search tool
Stars: ✭ 25 (-21.87%)
Mutual labels:  text
fortran-linter
A simple fortran syntax checker, including automatic fixing of the code.
Stars: ✭ 15 (-53.12%)
Mutual labels:  linter
pug-lint-vue
Command line tool to lint Pug templates in Vue single file components.
Stars: ✭ 21 (-34.37%)
Mutual labels:  linter
shcheck
easily bind shellcheck and shfmt to your CI, so your shellscripts can be checked.
Stars: ✭ 16 (-50%)
Mutual labels:  linter
todoscreensaver
A screensaver that reads a text file from somewhere on your PC.
Stars: ✭ 20 (-37.5%)
Mutual labels:  text

textlint-rule-terminology

textlint fixable rule Build Status npm

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

Installation

npm install textlint-rule-terminology

Usage

textlint --fix --rule terminology Readme.md

Configuration

You can configure the rule in your .textlintrc:

{
  "rules": {
    "terminology": {
      // Load default terms (see terms.json in the repository)
      "defaultTerms": true,
      // Syntax elements to skip. Overrides the default
      "skip": ["Blockquote"],
      // List of terms
      "terms": [
        // Exact spelling including the case
        "JavaScript",
        "ESLint",
        "Sass",
        "Less",
        "npm",
        // RegExp (case-insensitive) → replacement
        ["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"]
      ],
      // OR load terms from a file
      "terms": "~/terms.json",
      // OR load terms from npm
      "terms": "@johnsmith/terms",
      // Excludes 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

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

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 and contributors.

MIT License, see the included License.md file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].