项目作者: KeitaMoromizato

项目描述 :
Yahoo校正APIを使ったtextlintルール
高级语言: JavaScript
项目地址: git://github.com/KeitaMoromizato/textlint-rule-ja-yahoo-kousei.git


textlint-rule-ja-yahoo-kousei

textlint rule that using Yahoo Proofreading API.

Installation

  1. $ npm install textlint-rule-ja-yahoo-kousei

Usage

  1. $ npm install -g textlint textlint-rule-ja-yahoo-kousei

Should get Yahoo Application ID here.
And set YAHOO_APP_ID.

  1. $ export YAHOO_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

or set in .textlintrc.

  1. {
  2. "rules": {
  3. "ja-yahoo-kousei": {
  4. 'appID': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  5. }
  6. }
  7. }

run.

  1. $ textlint --rule textlint-rule-ja-yahoo-kousei README.md

Config

You can set words that ignore.

  1. {
  2. "rules": {
  3. "ja-yahoo-kousei": {
  4. 'ignores': {
  5. '用字':['彼方']
  6. }
  7. }
  8. }
  9. }

or use wildcard;

  1. {
  2. "rules": {
  3. "ja-yahoo-kousei": {
  4. 'ignores': {
  5. '用字': '*'
  6. }
  7. }
  8. }
  9. }

Example

TODO

Tests

  1. $ export YAHOO_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  2. $ npm test

License

MIT