Package Exports
- textlint-rule-ja-overlooked-typo
- textlint-rule-ja-overlooked-typo/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (textlint-rule-ja-overlooked-typo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
textlint-rule-ja-overlooked-typo
textlint-rule-ja-tojihiraki
は見逃しそうなタイプミスを検出します。
例:
- カタカナに混じる漢字
二ュートン
→ニュートン
- カタカナに混じるひらがな
タぺストリー
→タペストリー
- ひらがなに混じるカタカナ
たいヘん
→たいへん
インストール
npm install -g textlint-rule-ja-overlooked-typo
使い方
.textlintrc
を利用する場合
{
"rules": {
"ja-overlooked-typo": true
}
}
CLIから利用する場合
textlint --rule ja-overlooked-typo README.md
オプション
allow
:例外とする文字列のリスト"$num$"
:カタカナの単位等で数字が入る場合に含める(漢数字が入る場合を例外として扱います)
{
"rules": {
"ja-overlooked-typo": {
"allow": ["$num$ペニー"]
}
}
}
開発
ビルド
npm run build
テスト
npm test