1
0
forked from GitHub/gf-core
This commit is contained in:
lizazim
2015-01-07 23:44:49 +00:00
parent 6db2845375
commit 2bff57faca
12 changed files with 508 additions and 315 deletions
+20 -1
View File
@@ -76,6 +76,13 @@ concrete ConjunctionJpn of Conjunction = CatJpn ** open ResJpn, Prelude in {
} ;
prepositive = adv.prepositive
} ;
ConjAdV conj adv = {
s = case conj.type of {
(And | Both) => conj.null ++ adv.and ;
Or => conj.null ++ adv.or
}
} ;
ConjNP conj np = {
s = \\st => case conj.type of {
@@ -214,7 +221,17 @@ concrete ConjunctionJpn of Conjunction = CatJpn ** open ResJpn, Prelude in {
_ => True
}
} ;
BaseAdV x y = {
and = x.s ++ y.s ;
or = x.s ++ "か" ++ y.s
} ;
ConsAdV x xs = {
and = x.s ++ xs.and ;
or = x.s ++ "か" ++ xs.or
} ;
BaseNP x y = {
and = \\st => x.s ! st ++ "と" ++ y.s ! st ;
or = \\st => x.s ! st ++ "か" ++ y.s ! st ;
@@ -343,6 +360,8 @@ concrete ConjunctionJpn of Conjunction = CatJpn ** open ResJpn, Prelude in {
missingSubj : Bool} ;
[Adv] = {and, or : Style => Str ; prepositive : Bool} ;
[AdV] = {and, or : Str} ;
[NP] = {and, or, both : Style => Str ; prepositive : Style => Str ;
needPart : Bool ; changePolar : Bool ; meaning : Speaker ; anim : Animateness} ;