summaryrefslogtreecommitdiff
path: root/examples/phrasebook/Sentences.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2011-11-30 10:54:05 +0000
committeraarne <aarne@chalmers.se>2011-11-30 10:54:05 +0000
commitd2b99a0607e99e4a2e031d34b9b59126ef4b1149 (patch)
tree06f176b2fe0bc4bed8102ca048448f092dfa1550 /examples/phrasebook/Sentences.gf
parentcac8f22129e37e307eb0633bb4556780196e67bf (diff)
added RGL-functorial concepts to Phrasebook
Diffstat (limited to 'examples/phrasebook/Sentences.gf')
-rw-r--r--examples/phrasebook/Sentences.gf35
1 files changed, 35 insertions, 0 deletions
diff --git a/examples/phrasebook/Sentences.gf b/examples/phrasebook/Sentences.gf
index 47b5d0f1b..e0c58c40f 100644
--- a/examples/phrasebook/Sentences.gf
+++ b/examples/phrasebook/Sentences.gf
@@ -167,5 +167,40 @@ abstract Sentences = Numeral ** {
AKnowPerson : Person -> Person -> Action ; -- you know me
AKnowQuestion : Person -> Question -> Action ; -- you know how far the bar is
+------------------------------------------------------------------------------------------
+-- New things added 30/11/2011 by AR
+------------------------------------------------------------------------------------------
+
+ cat
+ VerbPhrase ; -- things one does, can do, must do, wants to do, e.g. swim
+ Modality ; -- can, want, must
+ fun
+ ADoVerbPhrase : Person -> VerbPhrase -> Action ; -- I swim
+ AModVerbPhrase : Modality -> Person -> VerbPhrase -> Action ; -- I can swim
+ ADoVerbPhrasePlace : Person -> VerbPhrase -> Place -> Action ; -- I swim in the hotel
+ AModVerbPhrasePlace : Modality -> Person -> VerbPhrase -> Place -> Action ; -- I can swim in the hotel
+
+ QWhereDoVerbPhrase : Person -> VerbPhrase -> Question ; -- where do you swim
+ QWhereModVerbPhrase : Modality -> Person -> VerbPhrase -> Question ; -- where can I swim
+
+ MCan, MKnow, MMust, MWant : Modality ;
+
+-- lexical items given in the resource Lexicon
+
+ VPlay, VRun, VSit, VSleep, VSwim, VWalk : VerbPhrase ;
+ VDrink, VEat, VRead, VWait, VWrite : VerbPhrase ;
+--- VBuy, VDrink, VEat : VerbPhrase ;
+--- VWait : Person -> VerbPhrase ;
+
+-- other new things allowed by the resource
+
+--- PBecause : Sentence -> Sentence -> Phrase ; -- I want to swim because it is hot
+
+ He, She, -- he, she
+ WeMale, WeFemale, -- we, said by men/women (affects agreement)
+ YouPlurFamMale, YouPlurFamFemale, -- plural familiar you, said to men/women (affects agreement)
+ YouPlurPolMale, YouPlurPolFemale, -- plural polite you, said to men/women (affects agreement)
+ TheyMale, TheyFemale : Person ; -- they, said of men/women (affects agreement)
+
}