yabuuchi-hiroaki / textlint-rule-ja-official-documents

Textlint rules for Japanese official documents [in Japanese]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textlint-rule-ja-official-documents

公用文校正のためのtextlintルール

    • 「わたし」→「私」
    • 「ご案内」→「御案内」

詳細は、辞書の定義を参照

インストール

node.js の事前インストール。その後、

npm install --save-dev textlint
npm install --save-dev textlint-rule-prh
npm install @textlint-ja/textlint-rule-morpheme-match
npm install --save-dev yabuuchi-hiroaki/textlint-rule-ja-official-documents
  • .textlintrcに以下を書きこみ
{
    "rules": {
        "@textlint-ja/morpheme-match": {
            "dictionaryPathList": ["node_modules/textlint-rule-ja-official-documents/src/dictionary.js"]
        },
        "prh": {
          "rulePaths": [
             "node_modules/textlint-rule-ja-official-documents/dict/prh.yml"
          ]
      }
   }
}

使い方

npx textlint [Markdownファイルへのpath]

参考

About

Textlint rules for Japanese official documents [in Japanese]

License:MIT License


Languages

Language:JavaScript 100.0%