mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
(Kor) Small fixes in comma versions of Conj opers
This commit is contained in:
@@ -63,7 +63,8 @@ oper
|
|||||||
|
|
||||||
conjSScomma : Conj -> ConjSS -> SS = \co,ss -> {
|
conjSScomma : Conj -> ConjSS -> SS = \co,ss -> {
|
||||||
s = co.s1
|
s = co.s1
|
||||||
++ glue (ss.firstSS ! co.c) co.s2
|
++ ss.firstSS ! co.c
|
||||||
|
++ co.s2
|
||||||
++ ss.s
|
++ ss.s
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
@@ -151,6 +152,22 @@ lin
|
|||||||
oper
|
oper
|
||||||
mkFirstNP : ResKor.NounPhrase -> ConjType => Str = \np ->
|
mkFirstNP : ResKor.NounPhrase -> ConjType => Str = \np ->
|
||||||
\\conj => glue (np.s ! Bare) (conjTable ! NStar ! conj) ;
|
\\conj => glue (np.s ! Bare) (conjTable ! NStar ! conj) ;
|
||||||
|
-- Versions with commas, no repeated conjunctions
|
||||||
|
|
||||||
|
baseNPcomma : NP -> NP -> ListNP = \x,y -> y ** {
|
||||||
|
firstNP = \\conj => x.s ! Bare ++ BIND ++ "," ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
consNPcomma : NP -> ListNP -> ListNP = \x,xs -> xs ** {
|
||||||
|
firstNP = \\conj =>
|
||||||
|
x.s ! Bare ++ BIND ++ "," ++ xs.firstNP ! conj ;
|
||||||
|
} ;
|
||||||
|
|
||||||
|
conjNPcomma : Conj -> ListNP -> NP = \co,xs -> xs ** {
|
||||||
|
s = \\nf => co.s1
|
||||||
|
++ xs.firstNP ! co.c
|
||||||
|
++ co.s2
|
||||||
|
++ xs.s ! nf
|
||||||
|
} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user