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

[nl] undetected error #7165

Open ghost opened 1 year ago

ghost commented 1 year ago

door prijsplafond betaald de verbruiker 40 cent

Betaald=>betaalt

ghost commented 1 year ago

Possible implementation:

<rule id="BETAALD_BETAALT" name="confusion of bed/bad">
    <pattern>
        <marker>
            <token postag="WKW:VTD:ONV"><exception postag_regexp="yes" postag="WKW:(TGW|VLT):.EP|WKW:(VLT|TGW):INF|ZNW.*|VGW"/><exception>gezien</exception></token>
        </marker>
        <token>de</token>
        <token postag_regexp="yes" postag="ZNW:EKV:DE_|ZNW:EKV"/>
    </pattern>
    <message>Did you mean <suggestion><match no="1" postag="WKW:TGW:3EP"/></suggestion>?</message>
    <example correction="betaalt">Dan <marker>betaald</marker> de gebruiker te veel.</example>
</rule>

Beware: it looks like 'gezien' is missing a postag, same as aangezien (VGW...)