Skip to content

Commit 7bacb66

Browse files
committed
Merge pull request #10 from azu/fix-9
2.2.1: ルールの誤爆を修正
2 parents c0bbd80 + 7906c0e commit 7bacb66

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

dict/2.2.1.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,22 @@ rules:
3434
patterns:
3535
- 子供
3636
- こども
37+
# 接続詞 または 文頭であることを考慮する
38+
- expected: $1さらに
39+
patterns:
40+
- /([\s。、\nぁ-んァ-ヶ])更に/
41+
specs:
42+
- from: Aは加速した、更に加速した。
43+
to: Aは加速した、さらに加速した。
44+
- from: 加速すると更に加速した
45+
to: 加速するとさらに加速した
46+
- from: 変更に加えて
47+
to: 変更に加えて
3748
- expected: さらに
38-
patterns: 更に
49+
patterns: /^更に/
50+
specs:
51+
- from: 更に加速した。
52+
to: さらに加速した。
3953
- expected: しかし
4054
patterns: 然し
4155
- expected: しばらく
@@ -152,16 +166,17 @@ rules:
152166
# 品詞・意味で使い分ける
153167
- expected: および
154168
patterns: 及び
155-
- expected: 及ぶ
156-
patterns: およぶ
169+
- expected: が及ぶ
170+
patterns: がおよぶ
157171
specs:
158172
- from: (例)影響がおよぶ。
159173
to: (例)影響が及ぶ。
160-
- expected: いたします
161-
patterns: 致します
162-
specs:
163-
- from: (例)お願い致します。
164-
to: (例)お願いいたします。
174+
# メンテナンスが難しいの無効
175+
# - expected: $1いたします
176+
# patterns: ([^引招送誘拉一合極雅筆風])致します
177+
# specs:
178+
# - from: (例)お願い致します。
179+
# to: (例)お願いいたします。
165180
- expected: 致す
166181
patterns: いたす
167182
specs:

test/prh-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ tester.run("2.2.3.一部の助数詞の表記", require("../src/2.2.3"), {
2424
});
2525
tester.run("2.2.1.ひらがなと漢字の使い分け", require("../src/2.2.1"), {
2626
valid: [
27-
"これは正常なテキストです"
27+
"これは正常なテキストです",
28+
"名前付きスロットはコンテンツ フラグメントに対応する `slot` 属性を持つ任意の要素に一致します。",
29+
"Array の値の変更に対しては"
2830
]
2931
});

0 commit comments

Comments
 (0)