Dependency Relations

Nominal Dependents

Seven relations that all do the same job from different angles: they attach something to a noun. Every one of them has a noun as its head, which makes this the easiest family to recognise in a tree — look for arcs that land on a noun rather than a verb.

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

Everything here lands on a noun

The other families are defined by what a word is. This one is defined by where it goes. An adjective, a number, a name and a possessive have nothing in common as words, but all four attach to a noun and narrow down which one you mean.

That makes the family a useful reading shortcut. If you have found the nouns in a tree, you have found where every yellow arc terminates.

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.

detamodnsubjROOTadvmodAcrimsonbannerhungoutside
  • detDeterminer
  • amodAdjectival modifier
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • advmodAdverbial modifier
crimson attaches to banner, not to the verb

He collects antique clocks.

nsubjROOTamoddobjHecollectsantiqueclocks
The same relation inside an object noun phrase

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.

detamodamodnsubjROOTTheoldwoodengatecreaked
old and wooden are siblings — both point at gate, neither at each other

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.

detcompoundnsubjROOTprtThebreadflourranout
  • detDeterminer
  • compoundCompound
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • prtParticle
bread is a noun modifying flour, so the relation is compound

She joined the chess club.

nsubjROOTdetcompounddobjShejoinedthechessclub
chess modifies club; the determiner attaches to club as well

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.

possnsubjapposROOTadvmodOurguideAmarawaitedoutside
  • possPossession modifier
  • nsubjNominal subject
  • apposAppositional modifier
  • ROOTRoot of the sentence
  • advmodAdverbial modifier
Amara hangs off guide, so the subject of waited is still guide

She phoned Dr Okafor, her dentist.

nsubjROOTcompounddobjpossapposShephonedDrOkaforherdentist
An appositive on an object — dentist renames Okafor

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.

nummodnsubjROOTdetdobjThreeotterscrossedtheriver
  • nummodNumeric modifier
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • detDeterminer
  • dobjDirect object
Three attaches to otters, which is itself the subject

He ordered twelve chairs.

nsubjROOTnummoddobjHeorderedtwelvechairs
The same relation inside an object

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.

posscasensubjROOTdobjPriya'stelescopeneedsrepair
  • possPossession modifier
  • caseCase marking
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • dobjDirect object
Two arcs for one possessive: poss for Priya, and case for the 's

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.

possnsubjROOTdetdobjTheircottageoverlooksthebay
A possessive pronoun — same relation, no case arc

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.

nsubjROOTamodquantmodnummoddetdobjHeatemorethanhalfthecake
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • amodAdjectival modifier
  • quantmodQuantifier modifier
  • nummodNumeric modifier
  • detDeterminer
  • dobjDirect object
than is the quantmod inside the quantity phrase; half is an ordinary nummod

Some twenty boats sank.

quantmodnummodnsubjROOTSometwentyboatssank
  • quantmodQuantifier modifier
  • nummodNumeric modifier
  • nsubjNominal subject
  • ROOTRoot of the sentence
A hedge before a number — Some is the quantmod of twenty

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.

detcompoundnsubjROOTThekitchenwindowcracked
  • detDeterminer
  • compoundCompound
  • nsubjNominal subject
  • ROOTRoot of the sentence
A scheme that used nmod would label kitchen with it; this one emits compound

Tickets cost $12 for adults.

nsubjROOTnmoddobjpreppobjTicketscost$12foradults
The one construction that yields nmod — the currency sign attaches to its number

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.

See: Possessives & Appositives

Possessor
Labelled poss, and attached to the thing owned. A ’s is a separate token carrying its own case arc. Omar’s coat is here. Her coat is here.

See: Possessives & Appositives

Compound
A noun used to modify another noun. Distinguished from amod purely by the modifier’s part of speech — see Parts of Speech. The kitchen door stuck. A philosophy professor spoke.

Practice on a real sentence

This one is long, and it carries several nominal dependents: an 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.

Edges 0/21Attempts 0Correct 0Time 0:00

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