1.0.1 • Published 3 years ago

textlint-rule-ja-input-mode-en v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

textlint-rule-ja-input-mode-en

日本語モードのまま入力された英単語を検出する textlint ルール。 自動修正にも対応しています。

  4:3 ✓ error 日本語モードのまま入力された英単語: sまrtpほね → smartphone ja-input-mode-en

以下のように、不自然なアルファベットが含まれる入力ミスを検出します。

  • あっpぇ → apple
  • sまrtpほね → smartphone
  • れこrでr → recorder

以下のように、不自然なアルファベットを含まない入力ミスは検出しません

  • あい → AI
  • いお → IO (アイオー、入出力)
  • いこか → icoca(交通系電子マネー)

Install

Install with npm:

npm install textlint-rule-ja-input-mode-en

Usage

Via .textlintrc(Recommended)

{
  "rules": {
    "ja-input-mode-en": true
  }
}

Via CLI

textlint --rule ja-input-mode-en 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

License

MIT © Tomoyuki Hata

Disclaimer

The following creations are included in this product: