textlint-rule-preset-ja-engineering-paper

1.0.4 • Public • Published

textlint-rule-preset-ja-engineering-paper

npm version Maintainability textlint rule Greenkeeper badge

日本語の工学系論文のためのtextlintルールプリセット

textlint rule preset for Japanese academic papers of enginering

Install

$ npm i textlint-rule-preset-ja-engineering-paper

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "preset-ja-engineering-paper": true
    }
}

Via CLI

$ textlint --preset preset-ja-engineering-paper README.md

他のpresetとの併用

より広範な文章向けのpreset-japanesepreset-ja-technical-writingpreset-jtf-stylepreset-ja-spacingとの併用をお勧めします。 ただし、句読点をチェックするルールと競合する場合があります。.textlintrcなどを使い、適宜無効化してください。

.textlintrcの例

{
  "plugins": [],
  "rules": {
    "preset-ja-engineering-paper": true,
    "preset-ja-spacing": true,
    "preset-ja-technical-writing": {
      "ja-no-mixed-period": {
        "periodMark": ""
      },
      "max-kanji-continuous-len": {
        max: 8,
        allow: [
          "日本機械学会論文集"
        ]
      },
    },
    "preset-japanese": true,
    "preset-jtf-style": {
      "1.2.1.句点(。)と読点(、)": false,
      "1.2.2.ピリオド(.)とカンマ(,)": false,
      "4.1.3.ピリオド(.)、カンマ(,)": false
    },
  }
}

Rules

textlint-rule-ja-hiragana-fukushi

漢字よりもひらがなで表記したほうが読みやすい副詞

textlint-rule-ja-hiragana-keishikimeishi

漢字よりもひらがなで表記したほうが読みやすい形式名詞

textlint-rule-ja-hiragana-hojodoushi

漢字よりもひらがなで表記したほうが読みやすい補助動詞

@textlint-ja/textlint-rule-no-synonyms

文章中の同義語の表記ゆれをチェックする

textlint-rule-prh

辞書ベースのチェック

辞書には論文にそぐわない表現をチェックするための設定を収録しています。

unify-kuten-and-touten

  • (「preset-jtf-style/1.2.1. 句点(。)と読点(、)」の改変ルール)
  • 工学系の論文などを対象に、句読点を統一します。
  • デフォルトは日本機械学会論文集が指定している「.」(全角ピリオド)と「,」(全角カンマ)です。
    • これらはoptionで変更できます。
  • TODO: 英語のアブストラクトのみ、半角記号を使う場合などの対処

textlint-rule-use-si-units

SI単位系の単位以外の使用を禁止する

参考資料(全て2020年1月5日閲覧)

Develop

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT

Package Sidebar

Install

npm i textlint-rule-preset-ja-engineering-paper

Weekly Downloads

224

Version

1.0.4

License

MIT

Unpacked Size

38.1 kB

Total Files

19

Last publish

Collaborators

  • kn1cht