Class AgreementRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.de.AgreementRule

public class AgreementRule extends Rule
Simple agreement checker for German noun phrases. Checks agreement in:
  • DET/PRO NOUN: e.g. "mein Auto", "der Mann", "die Frau" (correct), "die Haus" (incorrect)
  • DET/PRO ADJ NOUN: e.g. "der riesige Tisch" (correct), "die riesigen Tisch" (incorrect)
  • DET/PRO ADJ ADJ NOUN: e.g. "der große riesige Tisch" (correct), "die große riesige Tisch" (incorrect)
Note that this rule only checks agreement inside the noun phrase, not whether e.g. the correct case is used. For example, "Es ist das Haus dem Mann" is not detected as incorrect.

TODO: the implementation could use a re-write that first detects the relevant noun phrases and then checks agreement

Author:
Daniel Naber