2.0.1 • Published 3 years ago
textlint-rule-en-max-word-count v2.0.1
textlint-rule-en-max-word-count 
textlint rule that specify the maximum word count of a sentence.
Installation
npm install textlint-rule-en-max-word-countUsage
Via .textlintrc(Recommended)
{
"rules": {
"en-max-word-count": {
"max" : 50
}
}
}Via CLI
textlint --rule en-max-word-count README.mdOptions
.textlintrc options.
{
"rules": {
"en-max-word-count": {
// max count of word >
"max" : 50
}
}
}Example
OK :green_heart:
max: 4
This is a pen.NG :negative_squared_cross_mark:
max: 4
So, this is a pen.
// => Exceeds the maximum word count of 4.Tests
npm testContributing
- 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