Dependency Relations
Nominal Dependents
What you’ll learn
- Recognise the seven relations that hang off a noun
- Tell amod from compound when two words sit in front of a noun
- Read a possessive as the two arcs it really is
- Know why nmod almost never appears in this app, and the one construction that produces it
Describing the noun
amodAdjectival modifier
An adjective modifying a noun. The commonest member of the family, and the one that behaves most predictably.
How spaCy decides: an adjective sitting inside a noun phrase, attached to its noun. It makes no difference whether that noun phrase is the subject, the object, or inside a prepositional phrase.
“A crimson banner hung outside.”
- detDeterminer
- amodAdjectival modifier
- nsubjNominal subject
- ROOTRoot of the sentence
- advmodAdverbial modifier
“He collects antique clocks.”
Stacked adjectives do not chain. Each one attaches to the noun independently, so two adjectives produce two sibling arcs rather than a ladder.
“The old wooden gate creaked.”
compoundCompound
A noun modifying another noun. English builds these freely — bread flour, chess club, kitchen window — and the first noun takes this label rather than amod.
How spaCy decides: the modifier is tagged as a noun rather than an adjective. That is the whole test, and it is why the label sometimes surprises you: if the parser reads a word as a noun, you get compound even where amod feels right.
“The bread flour ran out.”
- detDeterminer
- compoundCompound
- nsubjNominal subject
- ROOTRoot of the sentence
- prtParticle
“She joined the chess club.”
apposAppositional modifier
An appositive — a second noun phrase renaming the first. Our guide and Amara are one person, named twice.
How spaCy decides: a nominal immediately following another nominal, usually set off by commas, with no verb or preposition joining them. The label goes on the second one and points back at the first.
“Our guide, Amara, waited outside.”
- possPossession modifier
- nsubjNominal subject
- apposAppositional modifier
- ROOTRoot of the sentence
- advmodAdverbial modifier
“She phoned Dr Okafor, her dentist.”
Counting and owning
nummodNumeric modifier
A number modifying a noun. Straightforward, and behaves exactly like an adjective.
How spaCy decides: the modifier is a numeral. Spelled-out numbers and digits are treated identically.
“Three otters crossed the river.”
- nummodNumeric modifier
- nsubjNominal subject
- ROOTRoot of the sentence
- detDeterminer
- dobjDirect object
“He ordered twelve chairs.”
possPossession modifier
The possessor. It attaches to the thing possessed — so in Priya’s telescope, Priya hangs off telescope rather than the other way round.
How spaCy decides: either a possessive pronoun (their, her) or a noun carrying ’s. The two look different in the sentence and identical in the tree.
“Priya's telescope needs repair.”
- possPossession modifier
- caseCase marking
- nsubjNominal subject
- ROOTRoot of the sentence
- dobjDirect object
The ’s is a separate word to the parser, with its own arc. A possessive pronoun has no clitic to split off, so it produces one arc instead of two.
“Their cottage overlooks the bay.”
quantmodQuantifier modifierRare — needs unusual input
A quantifier phrase modifier — the extra machinery inside a complex quantity like more than half. It is the rarest member of this family and does not occur at all in the app’s sentence corpus.
How spaCy decides: it labels the connecting word inside a multi-word quantity expression. A plain number is nummod; only the surrounding apparatus becomes quantmod.
“He ate more than half the cake.”
- nsubjNominal subject
- ROOTRoot of the sentence
- amodAdjectival modifier
- quantmodQuantifier modifier
- nummodNumeric modifier
- detDeterminer
- dobjDirect object
“Some twenty boats sank.”
- quantmodQuantifier modifier
- nummodNumeric modifier
- nsubjNominal subject
- ROOTRoot of the sentence
The one you will almost never see
nmodNoun modifierRare — needs unusual input
nmod is in the taxonomy — it has a colour, a gloss and a place in this family — but the model Grammify runs produces it for exactly one construction. It does not appear once across the app’s corpus, and for ordinary noun-modifies-noun sentences it survived every attempt to elicit it deliberately. What does produce it is a currency sign: in $12 the number is the head and the sign hangs off it as nmod, reliably, for $, £ and € alike.
The reason is a difference of scheme. Universal Dependencies defines a general nominal modifier covering a noun that modifies another noun by any means. The English pipeline here uses the older, more specific labels instead: a bare noun modifier is compound, a possessor is poss, and anything joined by a preposition is prep plus pobj.
“The kitchen window cracked.”
- detDeterminer
- compoundCompound
- nsubjNominal subject
- ROOTRoot of the sentence
“Tickets cost $12 for adults.”
Key terms
- Noun phrase
- A noun together with everything hanging beneath it. Never drawn as a boundary in a dependency tree — you read it off the subtree. The old kettle whistled. She bought a map of the coast.
See: Grammar Basics
- Appositive
- A noun phrase renaming the one beside it. The second points at the first, which means the first keeps whatever role the sentence gave it. My friend Jacob called. The capital, Lima, is on the coast.
- Possessor
- Labelled
poss, and attached to the thing owned. A ’s is a separate token carrying its owncasearc. Omar’s coat is here. Her coat is here. - Compound
- A noun used to modify another noun. Distinguished from
amodpurely by the modifier’s part of speech — see Parts of Speech. The kitchen door stuck. A philosophy professor spoke.
Practice on a real sentence
amod, a poss, and a relative clause hanging off a noun. Work the noun phrases first and the rest of the tree gets much easier.“The first pig built his house of straw, and the second pig, who was little wiser, built his house of sticks.”
Word dependencies
Pick a relation, click the head, then click the dependent.
Sentence — select a relation below, then click the words it connects
The first pig built his house of straw, and the second pig, who was little wiser, built his house of sticks.
Dependency tree — word-order columns
The dependency tree is built here as each relation is confirmed