mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
RelNP and ApposNP should put a final comma after the inserted phrase.
This commit is contained in:
@@ -22,7 +22,7 @@ concrete NounEng of Noun = CatEng ** open MorphoEng, ResEng, Prelude in {
|
||||
} ;
|
||||
|
||||
RelNP np rs = {
|
||||
s = \\c => np.s ! c ++ "," ++ rs.s ! np.a ;
|
||||
s = \\c => np.s ! c ++ "," ++ rs.s ! np.a ++ finalComma ;
|
||||
a = np.a
|
||||
} ;
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ lin
|
||||
} ;
|
||||
|
||||
ApposNP np1 np2 = {
|
||||
s = \\c => np1.s ! c ++ "," ++ np2.s ! npNom ;
|
||||
s = \\c => np1.s ! c ++ "," ++ np2.s ! npNom ++ finalComma ;
|
||||
a = np1.a
|
||||
} ;
|
||||
|
||||
|
||||
@@ -523,5 +523,6 @@ resource ResEng = ParamX ** open Prelude in {
|
||||
}
|
||||
} ;
|
||||
|
||||
finalComma : Str = pre {"," | "." => []; "" => ","; _ => []} ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user