原語の語尾が-ware, -wearの場合は、原則として「ウェア」とするtextlintルール。
OK:
ソフトウェア(software)
スパイウェア(spyware)
マルウェア(malware)
スポーツウェア(sports wear)
ゴルフウェア(gold wear)
マウンテンウェア(mountain wear)
カジュアルウェア(casual wear)
NG:
ソフトウエアは-wareなので小文字
ゴルフウエアは-wareなので小文字
Install with npm:
npm install @textlint-ja/textlint-rule-kana-english-suffix-ware
Via .textlintrc(Recommended)
{
"rules": {
"@textlint-ja/kana-english-suffix-ware": true
}
}Via CLI
textlint --rule @textlint-ja/kana-english-suffix-ware README.md
{
/**
* 許可する単語を指定できます
*/
allows?: string[];
/**
* 慣用的に例外とされる単語も不許可にするかどうか
* デフォルト: false
*/
disableBuiltinAllows: boolean;
}Example:
{
"rules": {
"@textlint-ja/kana-english-suffix-ware": {
"allows": ["マルウエア"],
"disableDefaultAllows": true
}
}
}- ウェア - Wikipedia
- Google検索:
ウエア->ウェア
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