Yahoo校正APIを使ったtextlintルール
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.babelrc
.gitignore
README.md
circle.yml
package.json

README.md

textlint-rule-ja-yahoo-kousei

textlint rule that using Yahoo Proofreading API.

Installation

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

Usage

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

Should get Yahoo Application ID here. And set YAHOO_APP_ID.

$ export YAHOO_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

or set in .textlintrc.

{
  "rules": {
    "ja-yahoo-kousei": {
      'appID': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    }
  }
}

run.

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

Config

You can set words that ignore.

{
  "rules": {
    "ja-yahoo-kousei": {
      'ignores': {
        '用字':['彼方']
      }
    }
  }
}

or use wildcard;

{
  "rules": {
    "ja-yahoo-kousei": {
      'ignores': {
        '用字': '*'
      }
    }
  }
}

Example

TODO

Tests

$ export YAHOO_APP_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$ npm test

License

MIT