Back to LanguageTool Homepage - Privacy - Imprint

Creating custom rules

I watched the video Create a new LanguageTool rule and I wondered if in this case it would be better to be able to define the rule on if the word is being used as an adjective or not rather than if a NNP follows?

Generally I am trying to learn more about writing rules myself and found Tips and Tricks | quite useful.

But if I am trying to write a rule that f.e. a company wants to be referred in the female fom (ie. “XYZ ist eine Parterin”), I was a bit unsure how to approach this as I didn’t want to build the rule around “Parterin” but rather that XYZ is being referred. Otherwise I have to build an endless list (ie. “Arbeitgeber” for “XYZ ist eine Arbeitgeberin”).

Any advice here?

I guess the standard rule is somewhere here under “Evtl. keine Übereinstimmung von Kasus, Genus oder Numerus”

You could maybe write a pattern that finds any phrase “XYZ” + “…” + masc. noun (SUB:.*:SIN:MAS). You probably want to have a large test corpus to run these rules against before you activate them in production.