Skip to content

Commit ed83de0

Browse files
committed
feat(ハイプ表現検出): 新しい誇張的表現の検出ルールを追加
- 「大幅に」という表現に対する警告メッセージを追加 - テストケースを更新し、新しいルールを検証
1 parent e92224e commit ed83de0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/rules/no-ai-hype-expressions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ const rule: TextlintRuleModule<Options> = (context, options = {}) => {
6363
pattern: //g,
6464
message:
6565
"「最先端の」という表現は定型的である可能性があります。具体的な技術的特徴を説明することを検討してください。"
66+
},
67+
{
68+
pattern: //g,
69+
message:
70+
"「大幅に」という表現は誇張的である可能性があります。具体的な数値や割合を示すことを検討してください。"
6671
}
6772
];
6873

test/rules/no-ai-hype-expressions.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ tester.run("no-ai-hype-expressions", noAiHypeExpressions, {
124124
}
125125
]
126126
},
127+
{
128+
text: "開発体験が大幅に向上します。",
129+
errors: [
130+
{
131+
message:
132+
"「大幅に」という表現は誇張的である可能性があります。具体的な数値や割合を示すことを検討してください。",
133+
range: [5, 8]
134+
}
135+
]
136+
},
127137
// 抽象的表現のハイプ
128138
{
129139
text: "魔法のように動作します。",

0 commit comments

Comments
 (0)