Skip to content

Commit

Permalink
fix(dictionary): fix "これは大切であると考えています" (#14)
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
azu authored Jan 3, 2019
1 parent 55bbc93 commit 52fac9b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,16 @@ module.exports = [
pos_detail_2: "*",
pos_detail_3: "*",
basic_form: "いる"
},
{
"surface_form": "ます",
"pos": "助動詞",
"conjugated_type": "特殊・マス",
"conjugated_form": "基本形",
"basic_form": "ます",
"reading": "マス",
"pronunciation": "マス",
_skippable: true
}
]
},
Expand Down
10 changes: 10 additions & 0 deletions test/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ tester.run("textlint-rule-ja-no-redundant-expression", rule, {
}
]
},
{
text: "これは大切であると考えています",
output: `これは大切である`,
errors: [
{
message: `"であると考えている"は冗長な表現です。"である" または "と考えている"を省き簡潔な表現にすると文章が明瞭になります。参考: http://www.atmarkit.co.jp/ait/articles/1001/19/news106_2.html`,
index: 5
}
]
},
{
text: "これは必要で有るといえます。",
errors: [
Expand Down

0 comments on commit 52fac9b

Please sign in to comment.