RelNP and ApposNP should put a final comma after the inserted phrase.

This commit is contained in:
kr.angelov
2013-09-03 08:00:59 +00:00
parent ee7307fbfb
commit b9192ccccf
3 changed files with 3 additions and 2 deletions

View File

@@ -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
} ;

View File

@@ -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
} ;

View File

@@ -523,5 +523,6 @@ resource ResEng = ParamX ** open Prelude in {
}
} ;
finalComma : Str = pre {"," | "." => []; "" => ","; _ => []} ;
}