added conjunction of complements

This commit is contained in:
Krasimir Angelov
2026-08-15 18:07:05 +02:00
parent dcd262df05
commit 621dc23f60
+19
View File
@@ -63,6 +63,7 @@ concrete ExtendRus of Extend =
lincat
VPS = {s : Mood => Agr => Str} ;
[VPS] = {s1,s2 : Mood => Agr => Str} ;
[Comp] = {s1,s2 : AgrTable ; cop : CopulaType} ;
RNP = {s : Agr => Str} ;
RNPList = {s1,s2 : Agr => Str} ;
@@ -326,6 +327,24 @@ lin
ConsVPS = consrTable2 Mood Agr comma ;
ConjVPS = conjunctDistrTable2 Mood Agr ;
BaseComp x y = {
s1 = \\a => x.adv ++ x.s ! a ;
s2 = \\a => y.adv ++ y.s ! a ;
cop = x.cop
} ;
ConsComp x xs = {
s1 = \\a => x.adv ++ x.s ! a ++ comma ++ xs.s1 ! a ;
s2 = xs.s2 ;
cop = x.cop
} ;
ConjComp conj xs = {
s = \\a => conj.s1 ++ xs.s1 ! a ++ conj.s2 ++ xs.s2 ! a ;
adv = [] ;
cop = xs.cop
} ;
-- : NP -> VPS -> S ;
PredVPS np vps = {
s = \\m => np.s ! Nom ++ vps.s ! m ! np.a