Skip to content

shotaizu/textlint-rule-ja-okurigana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-okurigana

Check Okurigana

Example

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

Install

Install with npm:

npm install shotaizu/textlint-rule-okurigana

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "okurigana": true
    }
}

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

{
    "rules": {
        "okurigana": {
            "dictionary_dir": "<path-to-directory-including-okurigana.dic>"
            }
    }
}

Via CLI

textlint --rule okurigana README.md

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

But this may fail for now...

License

  • GPLv3
  • Copyrights 2020 Shota Izumiyama

About

Rule of textlint to check Okurigana in Japanese

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published