-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdictionary.ts
104 lines (102 loc) · 3.45 KB
/
dictionary.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
export default [
{
// http://azu.github.io/morpheme-match/?text=今朝起きた事件に法律(を適応)する
message: `"適用"の誤用である可能性があります。適応 => 適用`,
expected: "を適用",
tokens: [
{
"surface_form": "を",
"pos": "助詞",
"pos_detail_1": "格助詞",
"pos_detail_2": "一般",
"pos_detail_3": "*",
"conjugated_type": "*",
"conjugated_form": "*",
"basic_form": "を",
"reading": "ヲ",
"pronunciation": "ヲ"
},
{
"surface_form": "適応",
"pos": "名詞",
"pos_detail_1": "サ変接続",
"pos_detail_2": "*",
"pos_detail_3": "*",
"conjugated_type": "*",
"conjugated_form": "*",
"basic_form": "適応",
"reading": "テキオウ",
"pronunciation": "テキオー"
}
]
},
{
// http://azu.github.io/morpheme-match/?text=長さを(可変する)
message: `「可変する」という使い方は適切ではありません。「可逆」と同じ使い方になります。\nhttp://qiita.com/scivola/items/f02589968a4ca27bc52b`,
tokens: [
{
"surface_form": "可変",
"pos": "名詞",
"pos_detail_1": "一般",
"pos_detail_2": "*",
"pos_detail_3": "*",
"conjugated_type": "*",
"conjugated_form": "*",
"basic_form": "可変",
"reading": "カヘン",
"pronunciation": "カヘン"
},
{
"pos": "動詞",
"pos_detail_1": "自立"
}
]
},
//
{
// https://azu.github.io/morpheme-match/?text=書きずらい
// ず + らい というToken
message: `動詞の連用形+辛い(つらい)の場合は、「ずらい」ではなく「づらい」が適切です。
参考:
- https://www.nhk.or.jp/bunken/summary/kotoba/uraomote/023.html
- https://ameblo.jp/writer-yama/entry-10522384501.html`,
expected: "$1づらい",
tokens: [
{
"pos": "動詞",
"pos_detail_1": "自立",
"conjugated_form": "連用形",
"_capture": "$1"
},
{
"surface_form": "ず",
},
{
"surface_form": "らい",
}
]
},
{
// https://azu.github.io/morpheme-match/?text=読みずらい
// ずら + い というToken
message: `動詞の連用形+辛い(つらい)の場合は、「ずらい」ではなく「づらい」が適切です。
参考:
- https://www.nhk.or.jp/bunken/summary/kotoba/uraomote/023.html
- https://ameblo.jp/writer-yama/entry-10522384501.html`,
expected: "$1づらい",
tokens: [
{
"pos": "動詞",
"pos_detail_1": "自立",
"conjugated_form": "連用形",
"_capture": "$1"
},
{
"surface_form": "ずら",
},
{
"surface_form": "い",
}
]
}
];