Skip to content

TRALE: Type-Feature Structure

In the previous section of this tutorial, we introduced a grammar example that did not use agreement. While functional, it was somewhat redundant, requiring separate rules for each type of pronoun and verb. In this section, we’ll show how using agreement between nouns and verbs can drastically simplify your grammar.

Table of Contents

Open Table of Contents

1. Introducing the Type Feature Structure

Let’s start by refining the type feature structure of our grammar to better handle agreement using inheritance. In TRALE, you can create more efficient and reusable rules by defining shared features in the type hierarchy. Here’s an improved version of the type feature structure:

bot sub [cat, agr, person].
    cat sub [agreeable, s].
        agreeable sub [pn, v] intro [agr:agr].
    agr intro [person:person].
    person sub [first, second, third].

Explanation

  1. Root types: We define bot as the root type. Under it, we define three main types: cat (for categories), agr (for agreement), and person (for grammatical person).
  2. Category (cat): The cat type is subdivided into agreeable (for things like pronouns and verbs that can agree) and s (sentence).
    • The agreeable type has an agr feature for agreement, which will be common to all its subtypes.
    • Subtypes of agreeable include pn (proper nouns) and v (verbs), which inherit the agr feature.
  3. Agreement (agr): This feature relates to grammatical person, defined through the person feature, which can be first, second, or third person.
  4. Person: We specify the types of persons under person, which will be used to manage agreement between subjects and verbs.

2. Simplifying the Grammar Using Agreement

Now, by leveraging this type feature structure, we can greatly simplify the rules governing subject-verb agreement. Here’s how we represent the agreement rules in TRALE:

bot sub [cat, agr, person].
    cat sub [agreeable, s].
        agreeable sub [pn, v] intro [agr:agr].
    agr intro [person:person].
    person sub [first, second, third].

i ---> (pn, agr:person:first).
you ---> (pn, agr:person:second).
he ---> (pn, agr:person:third).
she ---> (pn, agr:person:third).

sleep ---> (v, agr:person:first).
sleep ---> (v, agr:person:second).
sleeps ---> (v, agr:person:third).

Explanation of the Lexicon

We introduce lexicon entries for pronouns (i, you, he, she) and verbs (sleep, sleeps).

Using Agreement in a Rule

Finally, we can define a single intransitive sentence rule that uses agreement to enforce correct subject-verb pairing:

intransitive rule
s ===>
cat> (pn, agr:Agr),
cat> (v, agr:Agr).

Explanation

By using a shared agr feature for both pronouns and verbs, we avoid the need to write multiple rules for each possible combination of subject and verb. Instead, this rule will correctly match any subject and verb pair, as long as they agree in grammatical person.