mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
politeness and disambiguation in Phrasebook (not visible yet)
This commit is contained in:
20
examples/phrasebook/PhrasebookDisambEng.gf
Normal file
20
examples/phrasebook/PhrasebookDisambEng.gf
Normal 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) ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user