项目作者: shotaizu

项目描述 :
Rule of textlint to check Okurigana in Japanese
高级语言: JavaScript
项目地址: git://github.com/shotaizu/textlint-rule-ja-okurigana.git
创建时间: 2020-11-21T14:28:48Z
项目社区:https://github.com/shotaizu/textlint-rule-ja-okurigana

开源协议:GNU General Public License v3.0

下载


textlint-rule-okurigana

Check Okurigana

Example

私がよく間違える送り仮名を統一する。
例えば、「行なう」は不適で「行う」とする。
詳細は「内閣告示・訓令」に従うようにする (現時点では、対応しきれていない。辞書に追加することで可能となる)。

Install

Install with npm:

  1. npm install shotaizu/textlint-rule-okurigana

Usage

Via .textlintrc(Recommended)

  1. {
  2. "rules": {
  3. "okurigana": true
  4. }
  5. }

There is one option: you need to point out their location.

  1. {
  2. "rules": {
  3. "okurigana": {
  4. "dictionary_dir": "<path-to-directory-including-okurigana.dic>"
  5. }
  6. }
  7. }

Via CLI

  1. textlint --rule okurigana README.md

Build

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

  1. npm run build

Tests

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

  1. npm test

But this may fail for now…

License

  • GPLv3
  • Copyrights 2020 Shota Izumiyama