gector-bert-no / gector-guards.json
Imperatore's picture
2.0.0: run 2026-12-03-0714 at min_error_prob 0.8 + guards; card, quickstart
aca08ff verified
Raw History Blame Contribute Delete
3.62 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": "accent_needs_known_word",
"note": "an accent that makes a non-word is not a fix (Skalneset -> *Skålneset, Evangeliaret -> *Evængeliaret; run 1)"
},
{
"type": "merge_needs_known_word",
"mode": "distinct_parts",
"note": "a merge must give a word the speller knows (kirke viet -> *kirkeviet; run 1); one word given twice is not a compound (grotte grotta -> *grottegrotta; run 2)"
},
{
"type": "delete_only_duplicates",
"words": "det|veldig",
"note": "a deletion is honoured only on a doubled word, and 'det det' / 'veldig veldig' are Norwegian (ikke lenger det det var; gjør ikke det det interessant; en veldig veldig lang dag - run 3): they stay"
},
{
"type": "keep_repeated_names",
"mode": "inside_sentence",
"note": "a repeated capitalised word inside a sentence is a name (Li Li-Hua); at the start only before a third capital (La La Land) - Filmen Filmen is a doubled word"
},
{
"type": "keep_repeated_unknown_words",
"note": "a repeated word the speller does not know, next to another unknown word, is a name or a species (Tegeozetes tunicatus tunicatus, amas amas amasmuvvat; run 2)"
},
{
"type": "keep_coordinated_form",
"suffixes": "t",
"allow": "et",
"note": "two -t forms side by side are adverbs (litt vagt, bredt uthulet -> *vag; bredt og grunt -> *bred; runs 1 and 2)"
},
{
"type": "keep_ending_before_name",
"suffixes": "e",
"note": "an adjective before a name keeps its ending (vanlig Nintendo Switch -> *vanlige, østromersk Kilikia -> *østromerske; run 2)"
},
{
"type": "block_replace",
"from": "enkelt",
"to": "enkel",
"note": "en enkelt = a single (en enkelt støvel -> *enkel; runs 1 and 2)"
},
{
"type": "block_replace",
"from": "tom",
"to": "tomme",
"note": "tom is also the name Tom written small (Det er hva tom ønsker; run 3 Tatoeba)"
},
{
"type": "block_replace",
"from": "tom",
"to": "tomt",
"note": "tomt is a noun of its own, and the neuter form was put after a plural subject (attributter ... være tom; run 3)"
},
{
"type": "redirect_replace",
"from": "og",
"to": "å",
"redirect": "og",
"whenPrevIs": "med",
"note": "og after med joins two verbs that share an object (Vi kan arbeide med og dele de samme dataene; runs 2 and 3) - costs ferdig med og prøve -> å"
},
{
"type": "no_unknown_replacement",
"note": "a replacement that leaves a word the speller does not know is not a fix (De forsøk tre ganger -> *forsøkr; run 3)"
},
{
"type": "keep_numbers",
"words": "to|tre|fire|fem|seks|sju|syv|åtte|ni|ti|elleve|tolv|tjue|tretti|førti|femti|seksti|sytti|åtti|nitti|hundre|tusen|million|millioner|milliard|milliarder",
"note": "a number is never deleted unless it is doubled (from FR run 5: 9 593 391 -> *9 391; on every lane 2026-11-25)"
}
]
}