Dependency Relations

Root & Leftovers

The sixth family is not really a family. It holds the root — the most important label in any tree — together with punctuation, a handful of genuinely marginal relations, and the two labels that reach this app only when a person puts them there.

What you’ll learn

  • Explain why the root is stored as its own head
  • Recognise the relations that only appear in unusual input
  • Understand why punctuation is documented but never drawn
  • Tell a parser label apart from an administrator's correction

The root

ROOTRoot of the sentence

The one word in a sentence with no head. Everything else hangs off it, directly or through a chain, which makes it the first thing to find when you read a tree.

How spaCy decides: the main verb, almost always. It is stored as being its own head — not a trick, but genuinely how the data is written — which is why it is drawn with a stub rising out of the top of its box rather than an arc from elsewhere.

Thunder rumbled.

nsubjROOTThunderrumbled
  • nsubjNominal subject
  • ROOTRoot of the sentence
The smallest tree there is: a root and one dependent

The root is not always a verb. A verbless exclamation still needs one, and the parser promotes whatever is left.

What a disaster!

detdetROOTWhatadisaster
No verb anywhere — the noun becomes the root

Genuinely marginal relations

These three are real — the parser does emit them — but none occurs anywhere in the app’s 110-sentence corpus, and each needs unusual input to appear at all. You are unlikely to meet them in an exercise.

intjInterjection

An interjection — oh, hey, wow. It stands outside the grammar of the sentence and simply attaches to the main verb.

How spaCy decides: the word is tagged as an interjection. It is the most reachable of the three here; ordinary written prose just rarely contains one.

Oh, the parcel arrived.

intjdetnsubjROOTOhtheparcelarrived
  • intjInterjection
  • detDeterminer
  • nsubjNominal subject
  • ROOTRoot of the sentence
Oh contributes nothing structural, so it hangs off the root

Hey, stop that.

intjROOTdobjHeystopthat
The same relation in front of an imperative

parataxisParataxisRare — needs unusual input

Two clauses placed side by side with no conjunction and no subordination — an interrupting comment, or clauses joined only by a semicolon.

How spaCy decides: a second clause attached to the first with nothing grammatical joining them. It is hard to elicit deliberately; most sentences that look like candidates are parsed as ccomp or advcl instead.

He is, I believe, honest.

nsubjROOTnsubjparataxisacompHeisIbelievehonest
  • nsubjNominal subject
  • ROOTRoot of the sentence
  • parataxisParataxis
  • acompAdjectival complement
I believe interrupts the main clause without being part of it

The ferry, I think, left early.

detnsubjnsubjparataxisROOTadvmodTheferryIthinkleftearly
  • detDeterminer
  • nsubjNominal subject
  • parataxisParataxis
  • ROOTRoot of the sentence
  • advmodAdverbial modifier
An aside in the middle of a clause — think is a parataxis of left

depUnspecified dependencyRare — needs unusual input

The parser’s admission of defeat. dep means “there is a dependency here and I cannot name it”, and it appears when the input is degenerate enough that no ordinary analysis fits.

How spaCy decides: it does not, really — this is the fallback when nothing else applies. Seeing it on well-formed English is a strong signal that the parse has gone wrong somewhere earlier.

The what the how.

detdepdetROOTThewhatthehow
  • detDeterminer
  • depUnspecified dependency
  • ROOTRoot of the sentence
Deliberately malformed input — the parser labels what it cannot analyse

Even deliberately broken input rarely produces it. Um the thing uh broke. comes back as two interjections around an ordinary clause, and Yes, well, no. is three interjections — the parser would rather guess a real relation than admit defeat.

Labels that only a person puts there

vocativeVocative (direct address)Only from an administrator correction

Direct address — naming the person you are speaking to. Children in Children, we must hurry is not the subject and not a modifier; it is outside the clause entirely.

How spaCy decides: it does not. This model never produced a vocative once across the whole corpus. Fed that sentence, it labels Children as a noun phrase acting adverbially:

Children, we must hurry.

npadvmodnsubjauxROOTChildrenwemusthurry
  • npadvmodNoun phrase as adverbial modifier
  • nsubjNominal subject
  • auxAuxiliary
  • ROOTRoot of the sentence
What the parser actually returns — npadvmod, which is wrong for a direct address

An administrator corrected that token by hand, and the corrected value is what the corpus stores and what the exercise grades against:

Children, we must hurry.

vocativensubjauxROOTChildrenwemusthurry
After the correction — the relation an administrator set, and the one the exercise expects

metaMeta modifierNot produced by this model

Reserved for markup and metadata that is in the text but not in the sentence — editorial marks, tracking artefacts, stray formatting.

How spaCy decides: in practice, it does not. meta appears nowhere in the corpus and could not be elicited by any test input. It exists for cleaning up scraped text rather than for analysing curated sentences, and every sentence in this app is curated.

There is no “what it emits instead” figure for this one, because there is no construction it competes for. If you ever see it on a Grammify sentence, it was set by hand.

Punctuation

punctPunctuationNever drawn in a tree

The forty-sixth label, and the only one that is both extremely common and completely invisible. Punctuation is the single most frequent relation in the corpus — and it is excluded from every surface in the app.

Where it is excluded: punctuation is dropped from the dependency tree, so it is never a node and never an arc. It is absent from the POS, Tags and Dependencies palettes. It is not clickable in any exercise, and no syntactic span in a Reed-Kellogg diagram ever includes it.

The one place a reader can see the tags themselves is a chips figure that labels them:

WellUH,,theDTferryNNleftVBD!.

The one place it is visible is the Workbench token table, which shows every row including punctuation, so an administrator can see the complete tokenisation. Note that a mid-word hyphen is a punctuation token too — co-captains is three tokens, not one.

Key terms

Root
The word with no head, stored as its own head. One click in the Dependencies exercise, not two. Birds sing. The kettle had been whistling.

See: Dependency Parsing

Original value
The parser’s first prediction, kept permanently even after an administrator overrides it. Exercises always grade the live value, never this one. Children, we must hurry. — the parser said npadvmod; the live value is vocative. Two students were made co-captains. NN on co, corrected to AFX.
Direct address
Naming the person spoken to. Grammatically outside the clause — which is why a Reed-Kellogg diagram floats it on its own line above the base line. Children, we must hurry. Pass the salt, Maria.

See: Imperatives & Conjunctions

Fallback label
dep, used when no other relation fits. On well-formed English it is a sign of a parse problem rather than a genuine analysis. Um, the thing, uh, broke. — filler words are where it tends to turn up. Yes, well, no. — so is a string of words with no structure to hang on.

Practice on a real sentence

A short sentence, and a good place to practise the one-click root. Note that the trailing punctuation is not part of the tree at all, so the exercise is finished once every word has an arc.

Santiago has a nice watch

Word dependencies

Pick a relation, click the head, then click the dependent.

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

Sentence — select a relation below, then click the words it connects

Santiago has a nice watch

Dependency tree — word-order columns

The dependency tree is built here as each relation is confirmed