prh.yml
A collection of A collection of dictionary for prh.
Requirement
You should install prh or textlint-rule-prh.
textlint-rule-prh with textlint >= 7.1.2
Dictionary
- css.yml - CSS Dictionary
- javascript.yml - JavaScript Dictionary
- other.yml - Other
- software.yml - Software dictionary
- ja/jser-info.yml - JSer.info 特有の表現統一の辞書
- ja/kanji-open.yml - 漢字の開きをチェックする辞書
- ja/spoken.yml - 口語表現をチェックする辞書
- ja/typo.yml - 明らかなtypoをチェックする辞書
- ja/web+db.yml - WEB+DB PRESS用語統一ファイルをよりゆるやかにした辞書
Usage
Add to your project
git subtree add --prefix=prh https://github.com/azu/prh.yml.git master --squash
Update exist rules
git subtree pull --prefix=prh https://github.com/azu/prh.yml.git master --squash
prh.yml
Setting of You can import these prh dictionary files from main prh.yml
.
version: 1
imports:
- prh/ja/jser-info.yml
- prh/ja/kanji-open.yml
- prh/ja/spoken.yml
- prh/ja/typo.yml
- prh/javascript.yml
- prh/css.yml
- prh/software.yml
rules:
# project configuration
- expected: Almin
patterns: /almin.js/i
Folder structure
The files in the root directory are for *.yml
file that are project specific, such as programming language or framework specific templates.
Natural language file should go into the <lang>/
directory.
e.g.) ja/typo.yml
define typo for japanese.
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Edit some.yml file
- Add
expected
andpatterns
, also addspecs
. - Send Pull Request!
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Author
License
MIT © azu