1
0
forked from GitHub/gf-rgl

conjunction in Slovenian

This commit is contained in:
krasimir
2016-08-16 10:35:30 +00:00
parent 6c88dcd7a3
commit c0d2623e59
5 changed files with 32 additions and 5 deletions
+16 -1
View File
@@ -2,19 +2,34 @@ concrete ConjunctionSlv of Conjunction =
CatSlv ** open ResSlv in {
lin
ConjNP conj xs = {
s = \\c => xs.s1 ! c ++ conj.s ++ xs.s2 ! c ;
a = {g = xs.a.g; n = conjNumber conj.n xs.a.n; p = xs.a.p}
} ;
ConjAP conj xs = {
s = \\sp,g,c,n => xs.s1 ! sp ! g ! c ! n ++ conj.s ++ xs.s2 ! sp ! g ! c ! n
} ;
-- These fun's are generated from the list cat's.
BaseAP x y = { s1 = x.s; s2=y.s } ;
BaseNP x y = {
s1 = x.s ;
s2 = y.s ;
a = conjAgr x.a y.a
} ;
ConsNP x xs = {
s1 = \\c => x.s ! c ++ "," ++ xs.s1 ! c ;
s2 = xs.s2 ;
a = conjAgr x.a xs.a
} ;
BaseAP x y = { s1 = x.s; s2 = y.s } ;
ConsAP x xs = {
s1 = \\sp,g,c,n => x.s ! sp ! g ! c ! n ++ xs.s1 ! sp ! g ! c ! n ;
s2 = xs.s2
} ;
lincat
[NP] = {s1,s2 : Case => Str; a : Agr} ;
[AP] = {s1,s2 : Species => Gender => Case => Number => Str} ;
}