Back to LanguageTool Homepage - Privacy - Imprint

[ar] A recursive error case

Salam,
I want to represent the following error case.
the word “سيّما” must be preceded by the word “لا”,

<pattern>
<marker>
 <token negate="yes" regexp="yes">لا|ولا</token>
 <token>سيما</token>
</marker>
</pattern>
<message>must be preceded by "لا:
        <suggestion>لا سيّما</suggestion>
</message>

but I got recursive error.
How to represent this case?

I’m not sure I understand your case, but maybe you could use <antipattern> to avoid matches not desired? There’s documentation at http://wiki.languagetool.org/development-overview#toc15

Thanks a lot, it works.