Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

textlint-rule-max-ten

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-max-ten

textlint rule that limit maxinum ten(、) count of sentence.

  • 2.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-12.86%
Maintainers
2
Weekly downloads
 
Created
Source

textlint-rule-max-ten Build Status Gitter

textlint rule is that limit maximum ten(、) count of sentence.

一文に利用できるの数を制限するtextlintルール

一文の読点の数が多いと冗長で読みにくい文章となるため、読点の数を一定数以下にするルールです。 読点の数を減らすためには、句点(。)で文を区切る必要があります。

Installation

npm install textlint-rule-max-ten

Usage

$ npm install textlint textlint-rule-max-ten
$ textlint --rule max-ten README.md
#    11:0  error  一つの文で"、"を3つ以上使用しています  max-ten

Setting

  • max: number
    • デフォルト: 3
    • 一文に許可される読点の数 + 1
{
  "rules": {
    "max-ten": {
        "max" : 3
    }
  }
}

例外

<名詞><名詞> のように名詞に挟まれた読点はカウントしません。 箇条書きとしての区切り文字として使われているため無視します。

Tests

npm test

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 25 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc