Introduction
Automatic Question Generation (QG) is a critical component in the development of educational technology, enabling the creation of practice exercises and assessments at scale. However, generating high-quality questions from complex English sentences—those containing multiple clauses—remains a significant challenge for natural language processing. Existing rule-based systems often struggle with these structures, frequently producing ungrammatical outputs or failing to generate questions for longer sentences. A common failure mode is the selection of an incorrect "wh-word" (e.g., using "What" when "Who" is required).
This paper introduces a syntax-based system designed to overcome these hurdles by specifically targeting relative pronouns (e.g., who, which, that) and relative adverbs (e.g., where, why). By extracting the "wh-word" directly from the input sentence's relative clause, the system significantly reduces selection errors and outperforms state-of-the-art baselines.
Methodology
The proposed system utilizes a rule-based pipeline that relies on deep dependency parsing rather than simple surface-level templates. The process involves four key stages:
- Parsing: The input sentence is processed using the Spacy parser to map its internal dependency structure.
- Feature Extraction: The system identifies nine specific relative pronouns and adverbs (who, whom, whose, which, that, where, when, why, how) while analyzing linguistic features such as tense, aspect, and head-modifier relationships.
- Rule Application: A suite of 30 rules, grounded in linguistic theory, is applied. These rules are categorized into three sets focusing on different structural roles: the relative pronoun modifying the object of the main verb, the pronoun acting as the subject of the relative clause, and the pronoun providing information about the head of a preceding noun phrase.
- Transformation: The system performs standard linguistic transformations, including do-insertion and auxiliary/modal inversion, to convert statements into natural-sounding questions.
Unlike previous approaches that decompose complex sentences into simpler fragments before processing, this method treats the sentence as a unified whole, preserving essential semantic links.
Evaluation and Results
The system was evaluated using the Wikipedia corpus, where the authors found that approximately 20% of sentences (roughly 3.8 million) contain at least one relative pronoun or adverb. For manual evaluation, 300 sentences were randomly sampled and compared against the Heilman and Smith (2009) QG system.
Four independent human evaluators rated the outputs on a scale of 1–3 for syntactic and semantic quality, and 1–2 for fluency and uniqueness. The proposed system achieved an overall rating of 9.44/10, significantly outperforming the Heilman system's 7.54/10.
As shown in Figure 1, the system achieved near-perfect scores for syntactic correctness (2.89/3.0) and semantic adequacy (2.9/3.0). It also demonstrated a substantial lead in fluency and the ability to generate a diverse distribution of questions.
Key Insights
The core innovation of this research is the realization that relative clauses already contain the necessary "wh-word" or a pronoun that maps directly to one. By fetching this word from the source text, the system virtually eliminates the "wrong wh-word" error. Furthermore, while other systems are often limited by sentence complexity, this approach views relative clauses as rich information sources that allow for the generation of multiple relevant questions from a single input.
Figure 3 illustrates this capability, showing how the system can extract various facets of a sentence to create a comprehensive set of questions, whereas the baseline system often produces repetitive or overly long queries.
Conclusion
While the system is currently limited to sentences containing relative clauses, this accounts for a significant portion of natural language. The results demonstrate that a high-precision, rule-based approach can maintain syntactic rigor where neural models often falter. Future work may involve integrating these linguistic rules with neural methods to expand coverage to simpler or differently subordinated sentence structures.
Summary updated