Questions: Phrase Structure Rules and Context-Free Grammars
5 questions to test your understanding
Score: 0 / 5
Question 1 Multiple Choice
What feature of phrase structure rules allows a finite set of rules to generate an infinite number of grammatical sentences?
AEach rule applies in parallel, so multiple derivations run simultaneously
BRecursion: the same category can appear on both sides of a rule, embedding phrases inside phrases without limit
CContext-sensitivity: rules change based on surrounding words, multiplying possible outputs
DEach rule can be applied exactly once, but there are infinitely many rules in the grammar
Recursion is the key. A rule like VP → V NP PP allows a VP to contain a PP, and PP → P NP allows that PP to contain another NP, which can itself be expanded further. Because categories can appear on both sides of rules — generating structures that contain themselves — the same finite grammar produces infinitely long well-formed sentences. This is what distinguishes a formal grammar from a finite list of memorized sentences.
Question 2 Multiple Choice
A linguist proposes the rule: 'VP can expand as V NP only when the NP immediately follows the subject noun phrase.' Why does this rule fall outside the class of context-free grammars?
AContext-free grammars cannot include NPs in any rule
BThe expansion of VP depends on the surrounding context (the adjacent subject NP), violating the context-free requirement that a node expands the same way regardless of what surrounds it
CContext-free grammars require that all rules be recursive, and this rule is not recursive
DContext-free grammars do not allow verbs to precede noun phrases
'Context-free' means that a node's expansion is determined solely by the node's own category label — it does not depend on what is next to it in the tree. The proposed rule violates this: the VP can only expand as V NP if it is adjacent to a subject NP. That is a context-sensitive rule. CFGs are powerful precisely because expansions are local and independent of global structure, making them computationally tractable. Rules that require checking neighboring nodes belong to context-sensitive grammar formalisms.
Question 3 True / False
Context-free grammars (CFGs) cannot adequately describe natural language syntax, because most natural languages require transformational rules to capture basic sentences.
TTrue
FFalse
Answer: False
CFGs capture the vast majority of natural language syntax efficiently and are the foundation of most syntactic theory. The claim that CFGs are wholly inadequate is an overstatement. CFGs do have well-documented limitations — cross-serial dependencies in Swiss German, unbounded movement, certain coordination patterns — but these are edge cases, not the core of sentence structure. The correct position is that CFGs are powerful but not fully sufficient; more expressive formalisms (transformational grammar, Minimalism, HPSG) extend CFGs precisely because they need to handle these specific phenomena.
Question 4 True / False
A phrase structure rule like S → NP VP is called 'context-free' because the expansion of S (into NP VP) is the same regardless of what other nodes surround S in the sentence structure.
TTrue
FFalse
Answer: True
This is the defining property of context-free grammars. In a context-free rule, the left-hand side is a single non-terminal (here, S), and its expansion (NP VP) does not depend on any surrounding material. If expansion depended on what was adjacent — say, S only expands to NP VP when embedded in a certain clause type — the grammar would be context-sensitive. The 'context-free' label describes a formal property: the rewrite rule fires based solely on the node's own category.
Question 5 Short Answer
What is the key limitation of context-free grammars that motivated the development of more powerful syntactic formalisms, and what kind of linguistic phenomenon illustrates this limitation?
Think about your answer, then reveal below.
Model answer: CFGs cannot represent 'crossed dependencies' — co-reference relationships between words that create intersecting lines in the parse tree. Swiss German subordinate clauses, where subject-verb agreement creates dependencies that cross over each other, are the canonical example. CFGs can only represent nested (non-crossing) dependencies. Movement phenomena (wh-movement, topicalization) where a word appears far from its base position also challenge pure CFGs. These limitations motivated transformational grammar and other more expressive formalisms.
A tree — the output of phrase structure rules — is a planar hierarchical structure where no branches cross. This means CFGs can represent hierarchical nesting (A inside B inside C) but not the kind of interlocking dependencies found in Swiss German verb-argument patterns. Understanding what CFGs cannot do is as important as knowing what they can: every subsequent syntactic theory is a response to specific empirical limitations of context-free rules, and recognizing those limitations explains why syntactic theory evolved from simple phrase structure toward more powerful mechanisms.