Skip to content

Commit 52fac9b

Browse files
authored
fix(dictionary): fix "これは大切であると考えています" (#14)
fix #4
1 parent 55bbc93 commit 52fac9b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/dictionary.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,16 @@ module.exports = [
236236
pos_detail_2: "*",
237237
pos_detail_3: "*",
238238
basic_form: "いる"
239+
},
240+
{
241+
"surface_form": "ます",
242+
"pos": "助動詞",
243+
"conjugated_type": "特殊・マス",
244+
"conjugated_form": "基本形",
245+
"basic_form": "ます",
246+
"reading": "マス",
247+
"pronunciation": "マス",
248+
_skippable: true
239249
}
240250
]
241251
},

test/index-test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ tester.run("textlint-rule-ja-no-redundant-expression", rule, {
196196
}
197197
]
198198
},
199+
{
200+
text: "これは大切であると考えています",
201+
output: `これは大切である`,
202+
errors: [
203+
{
204+
message: `"であると考えている"は冗長な表現です。"である" または "と考えている"を省き簡潔な表現にすると文章が明瞭になります。参考: http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html`,
205+
index: 5
206+
}
207+
]
208+
},
199209
{
200210
text: "これは必要で有るといえます。",
201211
errors: [

0 commit comments

Comments
 (0)