Socket
Book a DemoInstallSign in
Socket

textlint-rule-ja-no-mixed-period

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-ja-no-mixed-period

文末の句点(。)の統一 OR 抜けをチェックするtextlintルール

1.0.1
Source
npmnpm
Version published
Maintainers
1
Created
Source

textlint-rule-ja-no-mixed-period Build Status

文末の句点(。)の統一 OR 抜けをチェックするtextlintルール

OK: これは問題ない文章です。
NG: これは問題ある文章です

パラグラフの末尾に必ず句点記号を付けていることをチェックするルールです。

Install

Install with npm:

npm install textlint-rule-ja-no-mixed-period

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "ja-no-mixed-period": true
    }
}

Via CLI

textlint --rule ja-no-mixed-period README.md

Options

  • periodMark(string):
    • 文末に使用する句点文字
    • デフォルト: "。"
{
    "rules": {
        "ja-no-mixed-period": {
            "periodMark": "。"
        }
    }
}

例外

会話文

末尾にがない場合でも、代わりに感嘆符や疑問符、括弧などがある場合は例外として扱います。

これは問題ない文章ですか!? 「会話文は括弧で括れば末尾に。がなくても問題ありません」

箇条書き

箇条書きの中はチェックせず無視します。

- これは問題ないです
- これも問題ないです

日本語ではない

日本語が含まれていないパラグラフは無視します。

参考情報

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  • 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

Author

License

MIT © azu

Keywords

textlint

FAQs

Package last updated on 30 Jun 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.