move UseDAP, UseDAPMasc, UseDAPFem to the RGL and implement it for several new languages

This commit is contained in:
krangelov
2021-04-27 18:00:54 +02:00
parent 156e193d47
commit 9d657a6f24
17 changed files with 182 additions and 7 deletions
+16
View File
@@ -210,4 +210,20 @@ lin
vptyp = vp.vptyp ;
} ;
UseDAP, UseDAPFem, UseDAPMasc = \dap ->
let
n : ParadigmsFin.Number = case dap.isNum of {
True => Sg ;
_ => dap.n
} ;
in {
s = \\c => let k = npform2case n c in
dap.sp ! k ; -- det.s2 is possessive suffix
a = agrP3 (case dap.isDef of {
False => Sg ; -- autoja menee; kolme autoa menee
_ => dap.n
}) ;
isPron = False ; isNeg = dap.isNeg
} ;
}