✘ それが事件の発端だったといえなくもない。
二重否定: 〜なくもない
✘ 確かにそういった懸念はない事はない。
二重否定: 〜ないこともない
などの二重否定を検出することができます。
二重否定の用法については<研究論文>二重否定表現「~なくは/ もない」「~ないでも/ はない」「~ないことは/ もない」「~ないものでは/ もない」の使い分けを巡ってを参照してください。
npm install textlint-rule-no-double-negative-ja
インストール後、.textlintrc
以下を追加します。
{
"rules": {
"no-double-negative-ja": true
}
}
npm test
- http://repository.kulib.kyoto-u.ac.jp/dspace/bitastream/2433/187059/1/Ronko3_043.pdf
- http://www.asahi-net.or.jp/~wd2y-kkb/n.htm#%E4%BA%8C%E9%87%8D%E5%90%A6%E5%AE%9A
- https://github.com/redpen-cc/redpen/blob/master/redpen-core/src/main/resources/default-resources/double-negative/double-negative-expression-ja.dat
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT