Skip to content

Latest commit

 

History

History

textlint-rule-no-kana-english-v

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@textlint-ja/textlint-rule-no-kana-english-v

原語が「v」の場合はカタカナに「ヴ」を使わないのが原則とするtextlintルールです。

「ヴ[子音]」の代わりに「バ」「ビ」「ブ」「ベ」「ボ」のどれかを利用してください。

OK:

アベレージ(average)
イベント(event)
バニラ(vanilla)
ボランティア(volunteer)

NG:

イヴェントは-v-なので「ベ」を使う

Install

Install with npm:

npm install @textlint-ja/textlint-rule-no-kana-english-v

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "@textlint-ja/no-kana-english-v": true
    }
}

Via CLI

textlint --rule @textlint-ja/no-kana-english-v README.md

Options

{
    /**
     * 許可する単語を指定できます
     */
    allows?: string[];
    /**
     * 慣用的に例外とされる単語も不許可にするかどうか
     * デフォルト: false
     */
    disableBuiltinAllows: boolean;
}

Example:

{
    "rules": {
        "@textlint-ja/no-kana-english-v": {
            "allows": ["ヴィデオ"],
            "disableDefaultAllows": true
        }
    }
}

References

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

yarn install && yarn test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu