1
0
forked from GitHub/gf-rgl

Merge pull request #167 from odanoburu/por-genrp

(Por) add GenRP to ExtendPor
This commit is contained in:
Inari Listenmaa
2019-02-12 15:02:31 +01:00
committed by GitHub

View File

@@ -77,6 +77,17 @@ concrete ExtendPor of Extend =
GenIP ip = {s = \\_,_,c => ip.s ! c} ;
GenRP nu cn = {
s = \\_b,_aagr,_c => cujo ! g ! n ++ num ++ cn.s ! n ;
a = aagr g n ;
hasAgr = True
} where {
cujo = genNumForms "cujo" "cuja" "cujos" "cujas" ;
g = cn.g ;
n = nu.n ;
num = if_then_Str nu.isNum (nu.s ! g) []
} ;
GenModNP num np cn = DetCN (DetQuant (GenNP (lin NP np)) num) cn ;
GenModIP num ip cn = IdetCN (IdetQuant (GenIP (lin IP ip)) num) cn ;