languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.48k stars 1.4k forks source link

Allow regexp in antipatterns #5493

Open MikeUnwalla opened 3 years ago

MikeUnwalla commented 3 years ago

We can make an antipattern for quoted text and long phrases. An elegant alternative is to allow <regexp> in an antipattern. Example:

<antipattern>
    <regexp>Be conscious of God and speak always the truth</regexp>
</antipattern>
nmamoon commented 3 years ago

I'll work on this issue.