Skip to content

Commit 8c7f8c5

Browse files
committed
Added a rule
1 parent 9a68847 commit 8c7f8c5

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
- 参考: <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
1717
- "を行う"は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。
1818
- 参考: <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
19+
- "を実行"は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。
20+
- 参考: <http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html>
1921

2022
## Install
2123

src/dictionary.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,41 @@ module.exports = [
282282
"basic_form": "行う",
283283
}
284284
]
285+
},
286+
{
287+
message: `"$1を実行"は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。`,
288+
url: "http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html",
289+
tokens: [
290+
{
291+
"pos": "名詞",
292+
"pos_detail_1": "サ変接続",
293+
"_capture": "$1"
294+
},
295+
{
296+
"surface_form": "を",
297+
"pos": "助詞",
298+
"pos_detail_1": "格助詞",
299+
"pos_detail_2": "一般",
300+
"pos_detail_3": "*",
301+
"conjugated_type": "*",
302+
"conjugated_form": "*",
303+
"basic_form": "を",
304+
"reading": "ヲ",
305+
"pronunciation": "ヲ"
306+
},
307+
{
308+
"surface_form": "実行",
309+
"pos": "名詞",
310+
"pos_detail_1": "サ変接続",
311+
"pos_detail_2": "*",
312+
"pos_detail_3": "*",
313+
"conjugated_type": "*",
314+
"conjugated_form": "*",
315+
"basic_form": "実行",
316+
"reading": "ジッコウ",
317+
"pronunciation": "ジッコー"
318+
},
319+
]
285320
}
321+
286322
];

test/index-test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ tester.run("textlint-rule-ja-no-redundant-expression", rule, {
5858
}
5959
]
6060
},
61+
{
62+
text: "検査を実行すれば分かります。",
63+
errors: [
64+
{
65+
message: `"検査を実行"は冗長な表現です。"検査する"など簡潔な表現にすると文章が明瞭になります。参考: http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html`,
66+
index: 0
67+
}
68+
]
69+
},
70+
6171
//http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html
6272
{
6373
text: "このコマンドの後には任意の値を設定することができる。このため、設定した値ごとに、システムの動作の確認を行わなければならない。この作業には時間がかかるため、テスト要員の追加が必要であると考えている。",

0 commit comments

Comments
 (0)