mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
simplified the treatment of politeness in Phrasebook
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
--# -path=.:present
|
||||
|
||||
concrete DisambPhrasebookEng of Phrasebook = PhrasebookEng - [Polite,Familiar] **
|
||||
open
|
||||
(R = Roles) in {
|
||||
concrete DisambPhrasebookEng of Phrasebook = PhrasebookEng -
|
||||
[YouFam, YouPol, GExcuse, GExcusePol, GSorry, GSorryPol, GPleaseGive, GPleaseGivePol]
|
||||
** open SyntaxEng, ParadigmsEng, Prelude in {
|
||||
lin
|
||||
Polite = {s = "(polite)" ; p = R.PPolite} ;
|
||||
Familiar = {s = "(familiar)" ; p = R.PFamiliar} ;
|
||||
YouFam = mkNP (mkNP youSg_Pron) (ParadigmsEng.mkAdv "(familiar)") ;
|
||||
YouPol = mkNP (mkNP youPol_Pron) (ParadigmsEng.mkAdv "(polite)") ;
|
||||
|
||||
GExcuse = fam "excuse me" ;
|
||||
GExcusePol = pol "excuse me" ;
|
||||
GSorry = fam "sorry" ;
|
||||
GSorryPol = pol "sorry" ;
|
||||
GPleaseGive = fam "please" ;
|
||||
GPleaseGivePol = pol "please" ;
|
||||
|
||||
oper
|
||||
fam : Str -> SS = \s -> postfixSS "(familiar)" (ss s) ;
|
||||
pol : Str -> SS = \s -> postfixSS "(polite)" (ss s) ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user