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
570 stars 74 forks source link

ParenthesizedSentence: max_length and word count #843

Open edwardwoodward opened 6 years ago

edwardwoodward commented 6 years ago

The default value of max_length appears to be 10. However, if the maximum allowed length is 10 this means that up to 10 words is OK. In fact, RedPen flags parentheses containing 10 words. Also, it's not clear what RedPen counts as a word. For example, with max_length set to 8, the following parenthesis is flagged: (for example, “12,000” instead of “12000”)

edwardwoodward commented 6 years ago

In addition to the above, ParenthesizedSentence also seems to have problems with parentheses inside asciidoc tables. In this case, I have the following text: (one parenthesized phrase inside another (such as this) on a good day) When it is inside a table, it is not flagged. When it is outside a table, it is flagged.