Grammar Writing: Week 3: Difference between revisions

From English Grammar
Jump to navigation Jump to search
 
(14 intermediate revisions by 2 users not shown)
Line 3: Line 3:




== Motivation ==
== Adding More Features ==


Implement your first grammar including
=== The feature VFORM ===
  -- i.) a type hiararchy,
  -- ii.) lexical entries (words), and
  -- iii.) three syntactic rules to properly combine words.


----
Many verbs have more than one form. For instance, we find not only ''see'', but also  ''sees'', ''saw'', ''seen'', and ''seeing''. In one most syntactic environments, only one form of the verb can occur, as is shown below:


== Homework Assignment (Due November 5th) ==
(1) Lilly dances.<br>
(2) *Lilly dance.<br>
(3) *Lill dancing.<br>
(4) *Lilly danced. (As perfect participle).<br>
 
(5) *Lilly is dances.<br>
(6) *Lilly is dance.<br>
(7) Lill is dancing.<br>
(8) *Lilly is danced. (As perfect participle).<br>
 
(9) *Lilly will dances.<br>
(10) Lilly will dance.<br>
(11) *Lill will dancing.<br>
(12) *Lilly will danced. (As perfect participle).<br>
 
(13) *Lilly has dances.<br>
(14) Lilly has dance.<br>
(15) *Lill has dancing.<br>
(16) Lilly has danced. (As perfect participle).<br>
 
For each of these environments above, we therefore must be able to state which verb form is appropriate for it. Therefore, we must be able to describe the verb forms. In order to do so, we proceed in a way similar to the way we handled the case distinctions in nouns.
 
We declare the feature VFORM as appropriate for the part of speech ''verb''. The value of VFORM is of type ''vform'' which takes the subtypes listed in the first column of the table below:


  <span style="color: blue>Task 1</span>
{| class="wikitable"
  In DesktopTrale, model the following type hierarchy. Make sure to start with topmost types. Add features only after the corresponding types are specified.
|-
  Don't forget to finally update the type hierarchy to make the changes effective. '''No spaces, no upper case letters, only underscore characters are allowed !'''
! Verb form !! Full name !! Examples
|-
| <span style="color: red>''fin''</span> || finite || sees, is, will, dances, dance (non-third person singular), danced (past tense)
|-
| <span style="color: red>''base''</span> || base form (= bare infinitive) || see, be, dance, give
|-
| <span style="color: red>''prp''</span> || present participle || seeing, being, dancing, giving
|-
| <span style="color: red>''pfp''</span>  || perfect participle || seen, been, danced, given
|-
|}


[[File:Svnplaygroundth.png|center|The "02_SNV" type hierarchy]]
=== Exercise ===


a. Add the feature VFORM to the part of speech ''verb''. The value of VFORM is of type ''vform''.<br>
b. Add the types ''fin, base, prp, pfp'' as subtypes of ''vform''.<br>
c. Add the words sees, see, seeing, and seen to the lexicon with their appropriate part of speech and VFORM value.


<span style="color: blue>Task 2</span>
Save the Type Hierarchy both in XML and in Trale format under the name "02_SVN".


== Homework Assignment (Due November 5th) ==
<span style="color: blue>Task 1</span>
In DesktopTrale, construct a type hierarchy which includes information on ''case'' for nouns and ''vform'' for verbs.
You should follow the modeling instructions from [[Grammar_Writing:_Week_2| '''Week 2''']].
Add the following lexical entries: ''her'', "she'', "Lilly", "playing", "played", "play", "plays".


  <span style="color: blue>Task 3</span>
Note that '''no spaces, no upper case letters, only underscore/lower-case characters are allowed !'''
  Add lexicon entries for "Lilly", "John", "cigarettes", "books", "reads", "cars", "smokes", "drives", "gives", and "dances". (use lowercase letters also for the proper names!)


<span style="color: blue>Task 4</span>
* Add a rule called "verb_noun_rule" with two child nodes, which combines a verb followed by a noun to form a sentence node. (e.g., for "smokes cigarettes").
* Add a rule called "noun_verb_rule" with two child nodes, which combines a noun followed by a verb to form a sentence node. (e.g., for "John smokes.")
* Add a rule called "verb_noun_noun_rule" with three child nodes, which combines a verb followed by two nouns to form a sentence node and '''provide an example''' for a phrase which could be recognized from the list of available lexicon entries.


Note: Tags (boxed numbers representing child nodes) should be moved into the ''daughters'' list (DTRS) of the parent node. This can be accomplished by drag-and-drop (left click on the tag and move it in between the brackets), OR by keeping CTRL/(STRG) pressed + right click on the DTRS list and then selecting ''Add Tag to list''.


  <span style="color: blue>Task 5</span>
<br>
Save the grammar as XML and Trale under the name "02_SVN_ready_for_testing".
<br>
Navigation:
<div align="center">
  [[Grammar_Writing|'''Main Page''']] &nbsp; [[Grammar_Writing:_Week_2| '''Week 2''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_3| '''Week 3''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_4| '''Week 4''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_5| '''Week 5''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_6| '''Week 6''']] &nbsp;&nbsp; [[Grammar_Writing:_Week_7| '''Week 7''']] &nbsp; [[Grammar_Writing:_Week_8| '''Week 8''']] &nbsp;&nbsp;  [[Grammar_Writing:_Week_9| '''Week 9''']] 
</div>

Latest revision as of 15:40, 31 October 2018



Adding More Features

The feature VFORM

Many verbs have more than one form. For instance, we find not only see, but also sees, saw, seen, and seeing. In one most syntactic environments, only one form of the verb can occur, as is shown below:

(1) Lilly dances.
(2) *Lilly dance.
(3) *Lill dancing.
(4) *Lilly danced. (As perfect participle).

(5) *Lilly is dances.
(6) *Lilly is dance.
(7) Lill is dancing.
(8) *Lilly is danced. (As perfect participle).

(9) *Lilly will dances.
(10) Lilly will dance.
(11) *Lill will dancing.
(12) *Lilly will danced. (As perfect participle).

(13) *Lilly has dances.
(14) Lilly has dance.
(15) *Lill has dancing.
(16) Lilly has danced. (As perfect participle).

For each of these environments above, we therefore must be able to state which verb form is appropriate for it. Therefore, we must be able to describe the verb forms. In order to do so, we proceed in a way similar to the way we handled the case distinctions in nouns.

We declare the feature VFORM as appropriate for the part of speech verb. The value of VFORM is of type vform which takes the subtypes listed in the first column of the table below:

Verb form Full name Examples
fin finite sees, is, will, dances, dance (non-third person singular), danced (past tense)
base base form (= bare infinitive) see, be, dance, give
prp present participle seeing, being, dancing, giving
pfp perfect participle seen, been, danced, given

Exercise

a. Add the feature VFORM to the part of speech verb. The value of VFORM is of type vform.
b. Add the types fin, base, prp, pfp as subtypes of vform.
c. Add the words sees, see, seeing, and seen to the lexicon with their appropriate part of speech and VFORM value.


Homework Assignment (Due November 5th)

Task 1
In DesktopTrale, construct a type hierarchy which includes information on case for nouns and vform for verbs. 

You should follow the modeling instructions from Week 2. Add the following lexical entries: her, "she, "Lilly", "playing", "played", "play", "plays".

Note that no spaces, no upper case letters, only underscore/lower-case characters are allowed !




Navigation:

 Main Page    Week 2     Week 3     Week 4     Week 5     Week 6     Week 7    Week 8      Week 9