Skip to content

Commit 7906c0e

Browse files
committed
fix(2.2.1): さらにの誤爆を修正
漢字として更の熟語ができないように変更 close #9
1 parent cf1a4ec commit 7906c0e

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

dict/2.2.1.yml

Lines changed: 15 additions & 1 deletion
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: しばらく

test/prh-test.js

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

0 commit comments

Comments
 (0)