Grammar Writing: Week 7
Jump to navigation
Jump to search
Tutorial Session (November 27th)
Grammar 1
type_hierarchy
bot
bool
minus
plus
sign syntax:part_of_speech
phrase dtrs:list
word
part_of_speech
sentence
verb
noun
list
ne_list tl:list hd:bot
e_list
.
Task 1:
Add lexicon entries for "she", "her", "help", "receives", "shouts".
Task 2:
Add grammar rules so that the following two sentences are correctly recognized: "she shouts" and "she receives help".
Solution:
noun_verb_rule => a sentence phrase with two children: a noun word + a verb word. verb_phrase_rule => a verb phrase with two children: a verb word + a noun word. noun_verbphrase_rule => a sentence phrase with two children: a noun word + a verb phrase.
Grammar 2
type_hierarchy
bot
sign syntax:syntax
phrase dtrs:list
word
list
ne_list tl:list hd:bot
e_list
vform
fin
nonfin
prp
pfp
base
pos
verb vform:vform
noun case:case
s
prep
syntax head:pos
case
acc
nom
.
Grammar 3
type_hierarchy
bot
sign syntax:syntax comps:list
phrase dtrs:list
word
list
ne_list tl:list hd:bot
e_list
vform
fin
nonfin
prp
pfp
base
pos
verb vform:vform
noun case:case
s
prep
syntax head:pos
case
acc
nom
.