politeness and disambiguation in Phrasebook (not visible yet)

This commit is contained in:
aarne
2010-03-24 08:18:54 +00:00
parent 68482aa7e9
commit 3ff870dcd6
8 changed files with 115 additions and 38 deletions

View File

@@ -0,0 +1,20 @@
--# -path=.:present
concrete PhrasebookDisambEng of Phrasebook =
PhrasebookEng - [PGreeting, Polite, Familiar, Male, Female] ** open
(R = Roles),
Prelude in {
lin
PGreeting p s h g = mkPhrase
(g.s ++ p.s ++ "(by" ++ s.s ++ ")" ++ "(to" ++ h.s ++ ")") ;
Male = {s = "a man" ; g = R.Male} ;
Female = {s = "a woman" ; g = R.Female} ;
Polite = {s = "(polite)" ; p = R.Polite} ;
Familiar = {s = "(familiar)" ; p = R.Familiar} ;
--oper
-- mkPhrase : Str -> Utt = \s -> lin Utt (ss s) ;
}