1
0
forked from GitHub/gf-rgl

Hrv: enough to implement NLG experiment, but bogus in some places

This commit is contained in:
Aarne Ranta
2022-09-30 13:31:06 +02:00
parent a27e502233
commit 47eca9545b
10 changed files with 52 additions and 20 deletions
+23 -2
View File
@@ -98,6 +98,18 @@ oper
zenaNForms : Str -> NForms
= zenaN ;
mkPN = overload {
mkPN : Str -> PN
= \s ->
let
nf = smartLexNoun s ;
n = nounFormsNoun nf nf.g
in lin PN {
s = \\c => n.s ! Sg ! c ; ---- TODO check this
g = nf.g
} ;
} ;
---------------------
-- Adjectives
@@ -170,7 +182,16 @@ oper
mkConj : Str -> Conj
= \s -> lin Conj {s1 = [] ; s2 = s} ;
--AW2 mkAdN
--AW2 mkOrd
mkAdN : Str -> AdN
= \s -> lin AdN {s = s} ;
mkOrd : Str -> Ord
= \s -> lin Ord (velikA s) ;
ifPluralNP : NP -> Bool
= \np -> case np.a of {
Ag _ Pl _ => True ;
_ => False
} ;
}