1
0
forked from GitHub/gf-rgl

implement contractions with prepositions also for interrogative pronouns and quants and dets

This commit is contained in:
Inari Listenmaa
2018-01-05 00:13:48 +02:00
parent b7ee620c8a
commit fb7e7050b9
3 changed files with 19 additions and 15 deletions
+9 -6
View File
@@ -60,19 +60,18 @@ concrete QuestionDut of Question = CatDut ** open ResDut in {
} ;
PrepIP p ip = {
s = appPrep p (noMerge ** ip)
s = appPrep p ip
} ;
AdvIP ip adv = {
AdvIP ip adv = ip ** {
s = \\c => ip.s ! c ++ adv.s ;
n = ip.n
} ;
IdetCN idet cn =
let
g = cn.g ;
n = idet.n
in {
in noMerge ** {
s = \\c => idet.s ! g ++ cn.s ! Weak ! NF n Nom ;
n = n
} ;
@@ -83,7 +82,9 @@ concrete QuestionDut of Question = CatDut ** open ResDut in {
n = idet.n
in {
s = \\_ => idet.s ! g ;
n = n
n = n ;
mergesWithPrep = idet.mergesWithPrep ;
mergeForm = idet.mergeForm
} ;
IdetQuant idet num =
@@ -91,7 +92,9 @@ concrete QuestionDut of Question = CatDut ** open ResDut in {
n = num.n
in {
s = \\g => idet.s ! n ! g ++ num.s ;
n = n
n = n ;
mergesWithPrep = idet.mergesWithPrep ;
mergeForm = idet.mergeForm
} ;
AdvIAdv i a = {s = i.s ++ a.s} ;