added a missing ParadigmsGer.mkPrep case to maintain bw compatiblity of the API

This commit is contained in:
aarneranta
2026-09-09 09:47:27 +02:00
parent f6576c4b36
commit 0f4dd88f9e
2 changed files with 16 additions and 0 deletions
+11
View File
@@ -591,6 +591,17 @@ mkV2 : overload {
{s = \\_ => [] ; s2 = [] ; c = c ; t = isCase ; lock_Prep = <>} ;
mkPrep : ObjCase -> Prep = \c ->
{s = \\_ => [] ; s2 = [] ; c = c ; t = isCase ; lock_Prep = <>} ;
mkPrep : Str -> Case -> Prep = \p,c -> -- TODO IPron Adv
{s = case c of {Nom => prepForms p (p ++ "der") (p ++ "die") (p ++ "das")
(p ++ artDef ! GSg Neutr ! Nom) (p ++ "was") ;
Obj Acc => prepForms p (p ++ "den") (p ++ "die") (p ++ "das")
(p ++ artDef ! GSg Neutr ! c) (p ++ "was") ;
Obj Dat => prepForms p (p ++ "dem") (p ++ "der") (p ++ "dem")
(p ++ artDef ! GSg Neutr ! c) (p ++ "wem") ;
Obj Gen => prepForms p (p ++ "des") (p ++ "der") (p ++ "des")
(p ++ "dessen") (p ++ "wessen")} ;
s2 = [] ; c = objCase c ; t = isPrep ; lock_Prep = <>
} ;
mkPrep : Str -> ObjCase -> Prep = \p,c -> -- TODO IPron Adv
{s = case c of {Acc => prepForms p (p ++ "den") (p ++ "die") (p ++ "das")
(p ++ artDef ! GSg Neutr ! Obj c) (p ++ "was") ;
+5
View File
@@ -46,6 +46,11 @@ resource ResGer = ParamX ** open Prelude in {
Agr = AgSgP1 | AgSgP2 | AgSgP3 Gender | AgPl Person | AgPlPol ;
oper
objCase : Case -> ObjCase = \c -> case c of {
Nom => Acc ; --- what else could one have?
Obj o => o
} ;
genderAgr : Agr -> Gender = \r -> case r of {AgSgP3 g => g ; _ => Masc} ;
numberAgr = overload {