languagetool-org / languagetool

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

Allow regexp in antipatterns #5493

Open MikeUnwalla opened 2 years ago

MikeUnwalla commented 2 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 2 years ago

I'll work on this issue.