redpen-cc / redpen

RedPen is an open source proofreading tool to check if your technical documents meet the writing standard. RedPen supports various markup text formats (Markdown, Textile, AsciiDoc, Re:VIEW, reStructuredText and LaTeX).
https://redpen.cc
Apache License 2.0
563 stars 74 forks source link

added ForceDearu option + fixed MASU detection pattern #863

Closed norm-ideal closed 5 years ago

norm-ideal commented 5 years ago

I added the option to force the DEARU mode. Default mode is unchanged (auto-detection).

The original code determines if the document is in DEARU/DESUMASU by the superior occurrence, and it works in most cases. But many of our students write their report by using DESUMASU while it should be DEARU, so I needed to fix the mode to DEARU even when DESUMASU is superior.

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.003%) to 91.389% when pulling 6c8ba1b4b1045149915ef3637402ce631e5ef306 on norm-ideal:master into 42a24bc1a93215f377158a92c32ce92e527e185b on redpen-cc:master.

takahi-i commented 5 years ago

@norm-ideal Thank you very much for the valuable contribution!