some ParadigmsEng,Fin,Ger additions

This commit is contained in:
aarneranta
2021-07-30 09:29:19 +02:00
parent da443a79af
commit cb502488d1
3 changed files with 11 additions and 1 deletions

View File

@@ -138,6 +138,12 @@ oper
mkPN : N -> PN --%
} ;
-- To extract the number of a noun phrase
ifPluralNP : NP -> Bool
= \np -> case (fromAgr np.a).n of {Sg => False ; Pl => True} ;
--3 Determiners and quantifiers
mkQuant : overload {

View File

@@ -396,6 +396,8 @@ mkVS = overload {
Part => lin Det (MorphoFin.mkDetPol isNeg nu (snoun2nounBind noun)) ** {isNum = True} ; --- works like "kolme autoa"
_ => lin Det (MorphoFin.mkDetPol isNeg nu (snoun2nounBind noun)) ---- are there other cases?
} ;
mkDet : Str -> Det -> Det -- add a string to a Det, e.g. "suunnilleen jokainen"
= \s,det -> det ** {s1 = \\c => s ++ det.s1 ! c} ;
} ;
mkQuant = overload {

View File

@@ -143,8 +143,10 @@ mkN : overload {
} ;
-- To extract the number of a noun phrase
ifPluralNP : NP -> Bool
= \np -> case (numberAgr np.a) of {Sg => False ; Pl => True} ;
--2 Adjectives