forked from GitHub/gf-core
Paradigm for German fixed prefix verbs
This commit is contained in:
@@ -193,7 +193,7 @@ mkV : overload {
|
||||
|
||||
mkV : (geben, gibt, gib, gab, gäbe, gegeben : Str) -> V ;
|
||||
|
||||
-- To add a movable suffix e.g. "auf(fassen)".
|
||||
-- To add a movable prefix e.g. "auf(fassen)".
|
||||
|
||||
mkV : Str -> V -> V
|
||||
};
|
||||
@@ -204,6 +204,10 @@ mkV : overload {
|
||||
|
||||
no_geV : V -> V ;
|
||||
|
||||
-- To add a fixed prefix such as "be-, ver-"; this implies $no_geV$.
|
||||
|
||||
fixprefixV : Str -> V -> V ;
|
||||
|
||||
-- To change the auxiliary from "haben" (default) to "sein" and
|
||||
-- vice-versa.
|
||||
|
||||
@@ -430,6 +434,14 @@ mkV2 : overload {
|
||||
prefix = v.prefix ; lock_V = v.lock_V ; aux = v.aux ; vtype = v.vtype
|
||||
} ;
|
||||
|
||||
fixprefixV s v = let vs = v.s in {
|
||||
s = table {
|
||||
p@(VPastPart _) => s + Predef.drop 2 (vs ! p) ;
|
||||
p => s + vs ! p
|
||||
} ;
|
||||
prefix = v.prefix ; lock_V = v.lock_V ; aux = v.aux ; vtype = v.vtype
|
||||
} ;
|
||||
|
||||
haben_V = MorphoGer.haben_V ** {lock_V = <>} ;
|
||||
sein_V = MorphoGer.sein_V ** {lock_V = <>} ;
|
||||
werden_V = MorphoGer.werden_V ** {lock_V = <>} ;
|
||||
|
||||
Reference in New Issue
Block a user