1
0
forked from GitHub/gf-rgl

(Kor) Add ConjS + new form in S and Cl inflection table

This commit is contained in:
Inari Listenmaa
2020-03-27 11:42:05 +01:00
parent ec0173c587
commit 8a151c684a
5 changed files with 33 additions and 17 deletions

View File

@@ -48,17 +48,29 @@ lin
BaseRS = twoTable3 … ;
ConsRS = consrTable3 … comma ;
ConjRS = conjunctRSTable ;
-}
lincat
[S] = {} ;
[S] = ResKor.Sentence ** {firstS : ConjType => Str} ;
lin
BaseS x y = y ** { } ;
ConsS x xs =
xs ** { } ;
ConjS co xs = {} ;
-}
BaseS s1 s2 = s2 ** {
firstS = mkFirstS s1
} ;
ConsS s ss = ss ** {
firstS = \\conj =>
mkFirstS s ! conj ++ ss.firstS ! conj ;
} ;
ConjS co ss = ss ** {
s = \\st => co.s1 ++ ss.firstS ! co.c ++ ss.s ! st
} ;
oper
mkFirstS : ResKor.Sentence -> ConjType => Str = \s ->
\\conj => glue (s.s ! Subord) (conjTable ! NStar ! conj) ;
lincat
[AP] = ResKor.AdjPhrase ** {firstAP : AForm => ConjType => Str} ;