mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
grammar for messages started
This commit is contained in:
45
examples/messages/Messages.gf
Normal file
45
examples/messages/Messages.gf
Normal file
@@ -0,0 +1,45 @@
|
||||
abstract Messages =
|
||||
Words - [IMale, IFemale, YouFamMale, YouFamFemale, YouPolMale, YouPolFemale],
|
||||
Greetings ** {
|
||||
|
||||
flags startcat = Message ;
|
||||
|
||||
cat
|
||||
Message ;
|
||||
Heading ;
|
||||
Body ;
|
||||
Ending ;
|
||||
Statement ;
|
||||
Recipient ;
|
||||
Sender ;
|
||||
Title ;
|
||||
Role ;
|
||||
|
||||
fun
|
||||
Msg : Heading -> Body -> Ending -> Message ;
|
||||
|
||||
HHello : Recipient -> Heading ;
|
||||
HDear : Recipient -> Heading ;
|
||||
|
||||
BOne : Statement -> Body ;
|
||||
BMore : Statement -> Body -> Body ;
|
||||
|
||||
ERegards : Sender -> Ending ;
|
||||
|
||||
SSentence : Sentence -> Statement ;
|
||||
SQuestion : Question -> Statement ;
|
||||
SGreeting : Greeting -> Statement ;
|
||||
|
||||
RName : Name -> Recipient ;
|
||||
RTitle : Title -> Name -> Recipient ;
|
||||
SName : Name -> Sender ;
|
||||
|
||||
TMr : Title ;
|
||||
TMs : Title ;
|
||||
|
||||
RI : Role ; -- generic: Gender and Politeness from context
|
||||
RYou : Role ;
|
||||
|
||||
PRole : Role -> Person ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user