check_object_case
Flags Estonian direct objects in the wrong case (nominative/genitive) after negation or partitive-only verbs, and detects teavitama/teatama government errors with case suggestions.
Instructions
Flags a direct object in the wrong case (käändeõpetus): a common noun in nominative or genitive (form) after
negation-requires-partitive: negation (ei söönud leib → leiba), orpartitive-only-verb:verb, one of nine verbs such as armastama, vajama and ootama that always take a partitive object.
The negation rule skips any sentence containing olema (pole, ei ole, pole näinud). The fix is the partitive of lemma in the number form shows; take it from paradigm. With no parser, a hit may be a subject or an adverbial, so treat it as worth a second look.
Two more rules check the government of teavitama (keda + millest) and teatama (kellele + millest), and add a suggestion:
teavitama-allative-recipient: teavitama or informeerima, or their noun teavitamine or informeerimine (verb), with the person or body in the allative (teavitas politseile;wordis the allative phrase).teatama-partitive-person: teatama with a partitive personal pronoun (Teatame Teid, et ...).
The fix is either teavitama + partitive (teavitas politseid) or teatama + allative (teatas politseile); for the noun, Rahapesu Andmebüroo teavitamine or teatamine Rahapesu Andmebüroole. Recall is low by design: a clause that already has a partitive object (teavitab õpilastele hindeid), an allative before the verb, an allative that a participle, adjective or action noun governs (teavitada isikut talle seatud piirangust), one whose head noun is not a person or body (kolimisest teisele korrusele), the experiencer of an adverb or a translative (meile teadaolevalt, kõigile üllatuseks) and an allative after a heading line are not flagged, and neither is a partitive pronoun that a following participle governs (Teatame Teid puudutavatest muudatustest: grammatical, but Teatame Teile ... reads better).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Estonian text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | No | ||
| summary_estonian | No |