textlint rule is that limit maximum ten(、) count of sentence.
一文に利用できる、
の数を制限するtextlintルール
一文の読点の数が多いと冗長で読みにくい文章となるため、読点の数を一定数以下にするルールです。 読点の数を減らすためには、句点(。)で文を区切る必要があります。
npm install textlint-rule-max-ten
$ npm install textlint textlint-rule-max-ten
$ textlint --rule max-ten README.md
# 11:0 error 一つの文で"、"を3つ以上使用しています max-ten
max
: number- デフォルト: 3
- 一文に許可される読点の数
{
"rules": {
"max-ten": {
"max" : 3
}
}
}
<名詞>
、<名詞>
のように名詞に挟まれた読点はカウントしません。
箇条書きとしての区切り文字として使われているため無視します。
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