You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This specific case could be detected as a wkw:tgw:1ep at the end of the sentence, without 'ik' in it. Of course with exceptions for occasional overlap with other word forms.
A more general solution (which also shows lots of crap from Wikipedia when testing, but it is a start:
<rule id="IK_VORM_ZONDER_IK" name="Zin met een ik-vorm, zonder 'ik'">
<antipattern>
<token skip="-1" postag="SENT_START"/>
<token skip="-1">ik</token>
<token postag="SENT_END"/>
</antipattern>
<antipattern>
<token regexp="yes">en|of|,|;</token>
<token postag="WKW:TGW:1EP"/>
</antipattern>
<antipattern>
<token postag="WKW:TGW:1EP"/>
<token regexp="yes">je|jij</token>
</antipattern>
<pattern>
<token><exception postag="SENT_START"/><exception>ik</exception></token>
<marker>
<token postag="WKW:TGW:1EP"><exception postag_regexp="yes" postag="ZNW.*|BNW.*|WKW:TGW:3EP|VGW|WKW:VTD:ONV|VNW.*|VRZ|ENM.*"/><exception regexp="yes">meer|maar</exception></token>
</marker>
</pattern>
<message>Deze zin heeft een ik-vorm, maar er staat geen 'ik' in de zin. Is dit een dt-foutje, of is de zin ingekort door 'ik' weg te laten?</message>
<suggestion><match no="2" postag="WKW:TGW:3EP"></match></suggestion>
<example correction="afleidt">Daar komt bij dat dit de aandacht <marker>afleid</marker>.</example>
</rule>
Daar komt bij dat dit de aandacht afleid.=>afleidt.
The text was updated successfully, but these errors were encountered: