Closed 0x6b closed 5 years ago
Yes. you're correct.
We should add 特殊・マス type to Types
.
Also, we need to change this line.
- } else if (conjugatedType === Types.desu) {
+ } else if (conjugatedType === Types.desu || conjugatedType === Types.masu) {
It is good that We add isDesumasuType
and isDearuType
and use it.
@azu thanks for your investigation! Allow me open a new pull request.
Note: open a pull request to textlint-rule-no-mix-dearu-desumasu as well.
Hi,
Although the module description says it will detect "desu-masu" and "dearu", it seems not to handle "masu" case. I'm not sure this is designated behavior or not. Could you give me your thought on this.
Tested versions:
Steps to reproduce:
Expected result:
Phrase "iOSに対応します。" will print some object dump which contains
conjugated_type: '特殊・マス'
.Actual result:
Following local fix could solve my issue.