New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

textlint-rule-unexpanded-acronym

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-unexpanded-acronym

textlint rule that check unexpanded acronym word.

1.2.4
latest
Source
npm
Version published
Weekly downloads
4.3K
15%
Maintainers
1
Weekly downloads
 
Created
Source

textlint-rule-unexpanded-acronym Build Status

textlint rule that found Unexpanded Acronym.

That is, if there exists an acronym ABC in the document, then there must also exist a sequence of capitalized words such as Axxx Bxx Cxxx.

OK:

ABC can stand form the Australian Broadcasting Commission.

NG:

I like ABC.
(What does ABC stand for ???)

Installation

npm install textlint-rule-unexpanded-acronym

Usage

Via CLI

npm install textlint textlint-rule-unexpanded-acronym -D
$(npm bin)/textlint --rule unexpanded-acronym README.md

Via .textlintrc

{
    "rules": {
        "unexpanded-acronym" : {
            "min_acronym_len" : 3
        }
    }
}

Options

  • min_acronym_len(default:3): Minimum size for the acronym
  • max_acronym_len(default:5): Maximum size for the acronym
  • ignore_acronyms(default:[]): Ignoring acronym List.
{
    "rules": {
        "unexpanded-acronym" : {
            // AB is ignore, ABC is recognized.
            "min_acronym_len" : 3,
            // GREEEEEEN is ignore
            "max_acronym_len" : 5,
            // OSS is ignore
            "ignore_acronyms" : ["OSS"]
        }
    }
}

Tests

npm test

Reference

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

License

MIT

Keywords

textlint

FAQs

Package last updated on 29 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts