textlint rule that specify the maximum word count of a sentence.
npm install textlint-rule-en-max-word-count
Via .textlintrc(Recommended)
{
"rules": {
"en-max-word-count": {
"max" : 50
}
}
}Via CLI
textlint --rule en-max-word-count README.md
.textlintrc options.
{
"rules": {
"en-max-word-count": {
// max count of words and report error if exceed
"max" : 50
}
}
}max: 4
This is a pen.
max: 4
So, this is a pen.
// => Exceeds the maximum word count of 4.
npm test
- 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
MIT