added QuantityNP

This commit is contained in:
Krasimir Angelov
2026-04-16 08:50:21 +02:00
parent 34f5e625e3
commit 8a84ca1a45

View File

@@ -310,6 +310,13 @@ concrete NounMlt of Noun = CatMlt ** open ResMlt, Prelude, Maybe in {
isDefn = np.isDefn ;
} ;
QuantityNP n m = { -- quessed
s = \\c => preOrPost m.isPre m.s (n.s ! NumNom) ;
a = agrP3 (numform2num n.n) Masc ;
isPron = False ;
isDefn = False ;
} ;
oper
-- Overwrite the s field in an NP
overwriteNPs : NounPhrase -> (NPCase => Str) -> NounPhrase = \np,tbl -> {