原語が「v」の場合はカタカナに「ヴ」を使わないのが原則とするtextlintルールです。
「ヴ[子音]」の代わりに「バ」「ビ」「ブ」「ベ」「ボ」のどれかを利用してください。
OK:
アベレージ(average)
イベント(event)
バニラ(vanilla)
ボランティア(volunteer)
NG:
イヴェントは-v-なので「ベ」を使う
Install with npm:
npm install @textlint-ja/textlint-rule-no-kana-english-v
Via .textlintrc
(Recommended)
{
"rules": {
"@textlint-ja/no-kana-english-v": true
}
}
Via CLI
textlint --rule @textlint-ja/no-kana-english-v README.md
{
/**
* 許可する単語を指定できます
*/
allows?: string[];
/**
* 慣用的に例外とされる単語も不許可にするかどうか
* デフォルト: false
*/
disableBuiltinAllows: boolean;
}
Example:
{
"rules": {
"@textlint-ja/no-kana-english-v": {
"allows": ["ヴィデオ"],
"disableDefaultAllows": true
}
}
}
See Releases page.
Install devDependencies and Run npm test
:
yarn install && yarn test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- 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 © azu