Open ghost opened 4 years ago
just made a pull request (#2159) with a possible fix, it addresses the issues of whitespace around quotes, but the () brackets were already being treated well.
just updated the pull request with testing code
The pull request has been merged, thanks! Can this issue be closed now?
@baarsrj @danielnaber while working on this pull request I have noticed the following things:
languagetool-language-models
use the deprecated constructor CommaWhitespaceRule(messages)
;CommaWhitespaceRule
, it's ID is COMMA_PARENTHESIS_WHITESPACE
and it also treats quotes, while this is not indicated anywhere.I would like to work on this. Should I open an issue, or just submit a new pull request?
Feel free to open an issue.
It is not correct when a single or double quote has spaces on both sides. The Java rules check a lot about these special characters, but not this. It is easy enough to make in XML, but since it is probably true for all languages, should it not be added to the existing Java routines for checking " ' and ( ) ?