11// MIT © 2016 azu
22"use strict" ;
3+ const punctuations = [ "、" , "、" , "," , "," ] ;
4+
35module . exports = [
46 {
57 // https://azu.github.io/morpheme-match/?text=省略(することが可能)。
6- message : `"する$2$3可能$ 1"は冗長な表現です。"する$2$3可能 "を省き簡潔な表現にすると文章が明瞭になります。` ,
8+ message : `"する$2$3$4$5$ 1"は冗長な表現です。"する$2$3$4$5 "を省き簡潔な表現にすると文章が明瞭になります。` ,
79 url : "http://qiita.com/takahi-i/items/a93dc2ff42af6b93f6e0" ,
810 tokens : [
911 {
@@ -27,16 +29,13 @@ module.exports = [
2729 "_capture" : "$3" ,
2830 "_readme" : "[助詞]" ,
2931 } , {
30- "surface_form" : "可能" ,
31- "pos" : "名詞" ,
32- "pos_detail_1" : "形容動詞語幹" ,
33- "pos_detail_2" : "*" ,
34- "pos_detail_3" : "*" ,
35- "conjugated_type" : "*" ,
36- "conjugated_form" : "*" ,
37- "basic_form" : "可能" ,
38- "reading" : "カノウ" ,
39- "pronunciation" : "カノー"
32+ "surface_form" : punctuations ,
33+ "_skippable" : true ,
34+ "_capture" : "$4" ,
35+ } , {
36+ "basic_form" : [ "可" , "可能" , "不可能" , "不能" , "不可" ] ,
37+ "_capture" : "$5" ,
38+ "_readme" : "(不)可能" ,
4039 } , {
4140 "pos" : "助動詞" ,
4241 "_capture" : "$1"
@@ -45,7 +44,7 @@ module.exports = [
4544 } ,
4645 {
4746 // https://azu.github.io/morpheme-match/?text=解析(することができます)。
48- message : `"する$4$3$1$2"は冗長な表現です。"する$4$3"を省き簡潔な表現にすると文章が明瞭になります。` ,
47+ message : `"する$4$3$5$ 1$2"は冗長な表現です。"する$4$3$5 "を省き簡潔な表現にすると文章が明瞭になります。` ,
4948 url : "http://qiita.com/takahi-i/items/a93dc2ff42af6b93f6e0" ,
5049 expected : "$3$1$2" ,
5150 tokens : [
@@ -80,6 +79,11 @@ module.exports = [
8079 } ,
8180 "_readme" : "[助詞]" ,
8281 } ,
82+ {
83+ "surface_form" : punctuations ,
84+ "_skippable" : true ,
85+ "_capture" : "$5" ,
86+ } ,
8387 {
8488 "pos" : "動詞" ,
8589 "pos_detail_1" : "自立" ,
@@ -95,7 +99,7 @@ module.exports = [
9599 } ,
96100 {
97101 // https://azu.github.io/morpheme-match/?text=必要(であると言えます)
98- message : `"で$1と$ 2ます"は冗長な表現です。"である" または "と言えます "を省き簡潔な表現にすると文章が明瞭になります。` ,
102+ message : `"で$1$6と$5$ 2ます"は冗長な表現です。"である$6 " または "と$5言えます "を省き簡潔な表現にすると文章が明瞭になります。` ,
99103 url : "http://www.sekaihaasobiba.com/entry/2014/10/24/204024" ,
100104 tokens : [
101105 {
@@ -115,17 +119,19 @@ module.exports = [
115119 "_capture" : "$1" ,
116120 "_readme" : "ある" ,
117121 } ,
122+ {
123+ "surface_form" : punctuations ,
124+ "_skippable" : true ,
125+ "_capture" : "$6" ,
126+ } ,
118127 {
119128 "surface_form" : "と" ,
120129 "pos" : "助詞" ,
121- "pos_detail_1" : "格助詞" ,
122- "pos_detail_2" : "引用" ,
123- "pos_detail_3" : "*" ,
124- "conjugated_type" : "*" ,
125- "conjugated_form" : "*" ,
126- "basic_form" : "と" ,
127- "reading" : "ト" ,
128- "pronunciation" : "ト"
130+ } ,
131+ {
132+ "surface_form" : punctuations ,
133+ "_skippable" : true ,
134+ "_capture" : "$5" ,
129135 } ,
130136 {
131137 "pos" : "動詞" ,
@@ -155,7 +161,7 @@ module.exports = [
155161 } ,
156162 {
157163 // https://azu.github.io/morpheme-match/?text=必要(であると考えている)
158- message : `"であると考えている "は冗長な表現です。"である" または "と考えている "を省き簡潔な表現にすると文章が明瞭になります。` ,
164+ message : `"である$7と$5考えて$6いる "は冗長な表現です。"である$7 " または "と$5考えて$6いる "を省き簡潔な表現にすると文章が明瞭になります。` ,
159165 url : "http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html" ,
160166 expected : "である" ,
161167 tokens : [
@@ -176,17 +182,19 @@ module.exports = [
176182 "_capture" : "$1" ,
177183 "_readme" : "ある" ,
178184 } ,
185+ {
186+ "surface_form" : punctuations ,
187+ "_skippable" : true ,
188+ "_capture" : "$7" ,
189+ } ,
179190 {
180191 "surface_form" : "と" ,
181192 "pos" : "助詞" ,
182- "pos_detail_1" : "格助詞" ,
183- "pos_detail_2" : "引用" ,
184- "pos_detail_3" : "*" ,
185- "conjugated_type" : "*" ,
186- "conjugated_form" : "*" ,
187- "basic_form" : "と" ,
188- "reading" : "ト" ,
189- "pronunciation" : "ト"
193+ } ,
194+ {
195+ "surface_form" : punctuations ,
196+ "_skippable" : true ,
197+ "_capture" : "$5" ,
190198 } ,
191199 {
192200 "surface_form" : "考え" ,
@@ -212,6 +220,11 @@ module.exports = [
212220 "reading" : "テ" ,
213221 "pronunciation" : "テ"
214222 } ,
223+ {
224+ "surface_form" : punctuations ,
225+ "_skippable" : true ,
226+ "_capture" : "$6" ,
227+ } ,
215228 {
216229 "pos" : "動詞" ,
217230 "pos_detail_1" : "非自立" ,
@@ -223,7 +236,7 @@ module.exports = [
223236 } ,
224237 {
225238 // https://azu.github.io/morpheme-match/?text=動作の(確認を行わなければ)ならない
226- message : `"$1を行う "は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。` ,
239+ message : `"$1を$5行う "は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。` ,
227240 url : "http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html" ,
228241 tokens : [
229242 {
@@ -243,6 +256,11 @@ module.exports = [
243256 "reading" : "ヲ" ,
244257 "pronunciation" : "ヲ"
245258 } ,
259+ {
260+ "surface_form" : punctuations ,
261+ "_skippable" : true ,
262+ "_capture" : "$5" ,
263+ } ,
246264 {
247265 "pos" : "動詞" ,
248266 "pos_detail_1" : "自立" ,
@@ -254,7 +272,7 @@ module.exports = [
254272 ]
255273 } ,
256274 {
257- message : `"$1を実行 "は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。` ,
275+ message : `"$1を$5実行 "は冗長な表現です。"$1する"など簡潔な表現にすると文章が明瞭になります。` ,
258276 url : "http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html" ,
259277 tokens : [
260278 {
@@ -274,6 +292,11 @@ module.exports = [
274292 "reading" : "ヲ" ,
275293 "pronunciation" : "ヲ"
276294 } ,
295+ {
296+ "surface_form" : punctuations ,
297+ "_skippable" : true ,
298+ "_capture" : "$5" ,
299+ } ,
277300 {
278301 "surface_form" : "実行" ,
279302 "pos" : "名詞" ,
0 commit comments