textlint rule that specify the maximum word count of a sentence.
npm install textlint-rule-en-max-word-counttextlint rule that specify the maximum word count of a sentence.
npm install textlint-rule-en-max-word-count
Via .textlintrc(Recommended)
``js`
{
"rules": {
"en-max-word-count": {
"max" : 50
}
}
}
Via CLI
``
textlint --rule en-max-word-count README.md
.textlintrc options.
`js`
{
"rules": {
"en-max-word-count": {
// max count of word >
"max" : 50
}
}
}
max: 4
This is a pen.
max: 4
So, this is a pen.
// => Exceeds the maximum word count of 4.
npm test
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT