gector-bert-es / gector-guards.json
Imperatore's picture
Spanish 1.4.0: run 2026-11-24-1117 (Wikipedia + Europarl + Tatoeba, accent tags), min_error_prob 0.6, three guards
533b61d verified
Raw History Blame Contribute Delete
1.21 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": "redirect_replace",
"from": "tu",
"to": "tú",
"redirect": "tu",
"whenNextIs": "solo|sola",
"note": "'tu solo' is 'your solo' as often as 'you alone': the text cannot tell (practicado tu solo de flauta -> *tú)"
},
{
"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)"
},
{
"type": "keep_repeated_names",
"mode": "inside_sentence",
"note": "a repeated capitalised word inside the sentence is a name (Baden Baden, Lang Lang), never a doubled word to delete"
}
]
}