gector-bert-de / gector-guards.json
Imperatore's picture
German 2.2.0: run 2026-11-16-0932 (Europarl recipe), step-80k pick + 23 guards: gold 186/104/4/0, Tatoeba 0.15% on today's spelling, Europarl held-out 0.00%
bfd30ed verified
Raw History Blame Contribute Delete
6.45 kB
{
"guards": [
{
"type": "velar_orthography",
"note": "built-in (always on): reject a spurious h-insertion on a non-velar stem"
},
{
"type": "elision_echo",
"note": "built-in (always on): collapse a redundant elision echo (un'ora ora -> un'ora)"
},
{
"type": "auxiliary_number",
"note": "built-in (always on): keep 'e`' before a singular participle ('E` andata' is 3sg and correct; 'sono' would flip it to 1sg)"
},
{
"type": "suppress_append_words",
"words": "der|die|das|den|dem|ein|eine|und|in|zu|mit|auf|ist",
"note": "drop a stray appended article/preposition (the retired drop_word artifact)"
},
{
"type": "require_cue",
"pairs": "konnte>könnte|konnten>könnten|konntest>könntest|hatte>hätte|hatten>hätten|hattest>hättest|war>wäre|waren>wären|warst>wärst|wurde>würde|wurden>würden|wurdest>würdest|mochte>möchte|mochten>möchten|mochtest>möchtest",
"cues": "wenn|falls|ob|würde|würden|würdest|wäre|wären|hätte|hätten|könnte|könnten|gern|gerne|bitte|vielleicht|am liebsten|lieber",
"note": "indicative -> Konjunktiv II only with a cue in the sentence: both forms are correct German otherwise"
},
{
"type": "require_cue",
"pairs": "könnte>konnte|könnten>konnten|hätte>hatte|hätten>hatten|wäre>war|wären>waren|würde>wurde|würden>wurden|möchte>mochte|möchten>mochten",
"cues": "gestern|vorgestern|damals|früher|vorhin|neulich|einst|seinerzeit|letzte|letzten|letztes|letzter|#year|kind|jugend|schulzeit|kindheit",
"note": "Konjunktiv II -> indicative only with a past-time cue"
},
{
"type": "require_cue",
"pairs": "schon>schön",
"cues": "sehr|so|wirklich|ganz|besonders|zu|ziemlich|recht|wie|wunder|#copula-end",
"scope": "prev",
"note": "schon -> schön only right after an intensifier, or ending a copula clause (Die Blumen sind trotzdem schon.) - DE 1.1.0"
},
{
"type": "require_cue",
"pairs": "schön>schon",
"note": "never: 'Bleib schön fern', 'schwer, aber schön' are correct"
},
{
"type": "delete_only_duplicates",
"words": "das|die|der|den|dem|sie",
"whenPrevIs": "ist|war|wäre|sei|wird|bleibt|,|wenn|dass|ob|weil|als|da|obwohl|damit|bevor|nachdem|während|sobald|falls|wie|was",
"keepCaseDiffering": true,
"note": "a $DELETE is honoured only on a repeated word ('ist ist'); never on a real word ('wirklich echt?'); 'das das' after a form of sein is a demonstrative + an article (Ist das das Haus?) and stays (DE 1.1.0); so does a relative pronoun + article after a comma (diejenige, die die Entscheidungen trifft, DE 2.0.0) - Mach bitte die die Tür zu still loses one; a pair differing only in case mid-sentence is a noun + its verb (Wir müssen das Lernen lernen, DE 3.0.0)"
},
{
"type": "redirect_replace",
"from": "mal",
"to": "Mal",
"redirect": "mal",
"whenPrevIs": "das",
"note": "the particle 'mal' after 'das' stays lowercase (Zieh dir das mal an); 'das erste Mal' has a word between"
},
{
"type": "redirect_replace",
"from": "grosser",
"to": "großer",
"redirect": "größer",
"whenNextIs": "als",
"note": "a comparative before 'als' keeps its umlaut: 'grosser als' is größer, never großer (DE run 6 gold)"
},
{
"type": "capital_needs_known_word",
"note": "capitalise only when the word (either case) is known to the spell layer; inert without a speller"
},
{
"type": "no_replace_to_closed_class",
"words": "der|die|das|den|dem|des|ein|eine|einen|einem|einer|eines|und|oder|aber|in|im|zu|zum|zur|von|vom|mit|auf|für|an|am|bei|beim|nach|aus|um|über|unter|vor|dass|ob|wenn|als|wie|nicht|auch|noch|nur|so|sehr|es|er|sie|wir|ihr|ich|du|man|sich",
"note": "never replace a content word with a function word (the $REPLACE head guessing on an unknown token)"
},
{
"type": "redirect_replace",
"from": "hore",
"to": "hörte",
"redirect": "höre",
"whenPrevIs": "ich",
"note": "Ich hore: the umlaut fix is höre (1st person), never the past hörte"
},
{
"type": "block_replace",
"from": "spielt",
"to": "spiele",
"note": "spurious 3sg->1sg flip on correct text; no gold case needs this edit"
},
{
"type": "verb_person_needs_subject",
"pairs": "ich>1S|du>2S|er>3S|sie>3S|sie>3P|es>3S|man>3S|wir>1P|ihr>2P",
"words": "der|die|das|den|dem|des|ein|eine|einen|einem|einer|eines|kein|keine|mein|meine|dein|deine|sein|seine|ihre|ihren|ihrem|unser|unsere|euer|eure|dieser|diese|dieses|jeder|jede|jedes|alle|beide|viele|zwei|drei",
"note": "a verb's person changes only toward a subject in view; the nearest subject pronoun's form wins (Du macht -> machst, never *mache)"
},
{
"type": "keep_form_next_to",
"words": "man",
"suffixes": "e",
"note": "man + Konjunktiv I (Man nehme, nehme man) is correct German: the -e form next to 'man' is kept"
},
{
"type": "keep_plural_after",
"words": "die|meine|deine|seine|ihre|unsere|eure|keine|diese|jene|welche|alle|viele|manche|einige|mehrere|beide",
"suffixes": "n|en|e|er|s",
"note": "a plural noun after a determiner that is the same in the plural is never made singular (die Fragen)"
},
{
"type": "block_replace",
"from": "du",
"to": "Du",
"note": "capitalising the informal pronoun is a style choice, never a fix"
},
{
"type": "block_replace",
"from": "dir",
"to": "Dir",
"note": "capitalising the informal pronoun is a style choice, never a fix"
},
{
"type": "block_replace",
"from": "dich",
"to": "Dich",
"note": "capitalising the informal pronoun is a style choice, never a fix"
},
{
"type": "block_replace",
"from": "euch",
"to": "Euch",
"note": "capitalising the informal pronoun is a style choice, never a fix"
},
{
"type": "no_unknown_replacement",
"scope": "strict",
"note": "never propose a non-word (word knowledge; strict: a misspelling re-inflected into another non-word is held too; runs last)"
}
]
}