T-164Syntactic Diversity Score
Quantifies diversity of syntactic structures used — AI text often relies on a narrow set of syntactic templates.
Algorithm / Model
Parse Tree Template Diversity and Syntactic Repertoire Analysis
How it works
This method applies Syntactic Diversity Score analysis for AI-generated content detection:\n\n1. Parse Tree Template Extraction: Each sentence is parsed into a constituency tree, and the tree is abstracted into a syntactic template by retaining only phrase-level structure (S → NP VP, VP → VBD NP PP, etc.) while removing lexical content. This produces a structural fingerprint for each sentence. The method counts unique templates and computes: (a) syntactic type-token ratio (STTR) — unique templates / total sentences. Human text STTR: 0.70–0.90 (high diversity — most sentences have unique structures). AI text STTR: 0.45–0.65 (lower diversity — many sentences share the same template). (b) Template frequency distribution — the shape of the distribution of template frequencies. Human: flat distribution (most templates used 1–2 times). AI: concentrated distribution (few templates used 3–5 times each, dominating the text). (c) Hapax template ratio — the proportion of templates appearing exactly once. Human: 0.60–0.80. AI: 0.35–0.55.\n\n2. Clause-Level Syntactic Patterns: Beyond full-sentence templates, the method analyzes clause-level syntactic diversity: (a) clause type distribution — the proportion of main clauses, relative clauses, adverbial clauses, noun clauses, and participial clauses. Human text uses 5–7 clause types with no single type exceeding 40% of all clauses. AI text uses 3–5 types with the dominant type (usually main clause + relative clause) exceeding 50%. (b) Subordination diversity — the variety of subordinating conjunctions used. Human: 6–12 different subordinators per 1000 words. AI: 3–7 (relying heavily on 'that', 'which', 'because'). (c) VP complexity diversity — the range of verb phrase structures (simple, progressive, passive, modal + infinitive, complex). Human VP type count: 8–14 per 1000 words. AI: 5–9.\n\n3. Syntactic Novelty and Repetition Detection: The method identifies syntactic repetition patterns that signal AI generation: (a) template recycling — using the same syntactic template in consecutive sentences. Human consecutive repetition rate: 5–12%. AI: 15–30%. The method specifically flags 'syntactic echoes' where 3+ consecutive sentences share the same template. Human echo rate: 1–3% of sentence triples. AI: 5–12%. (b) Paragraph-initial template — the syntactic template used for the first sentence of each paragraph. Human text shows 60–80% unique paragraph-initial templates. AI: 35–55% (paragraphs start with repetitive structures). (c) Listing template — the structure used in enumerated or listed items. Human varied listing structures: 'First...Second...Third', 'Moreover...Additionally...Furthermore', mixed with non-formulaic transitions. AI: highly formulaic listing with 2–3 repeated connecting structures.\n\n4. Syntactic Complexity Distribution: The method measures the spread of syntactic complexity rather than its mean: (a) sentence complexity histogram — the distribution of sentences across 5 complexity bands (simple, compound, complex, compound-complex, multi-embedded). Human distribution entropy: 1.8–2.2 bits (spread across bands). AI: 1.2–1.6 bits (concentrated in 1–2 bands). (b) Maximum embedding depth distribution — the range of maximum embedding depths across sentences. Human depth range: 1–8 levels (wide range from simple to deeply embedded). AI depth range: 2–5 levels (compressed range, avoiding both very simple and very complex structures). (c) Cross-sentence complexity transitions — the probability matrix of moving from one complexity band to another. Human matrices show off-diagonal entries of 0.15–0.25 (frequent band switching). AI matrices show diagonal dominance > 0.40 (sentences tend to stay in the same complexity band).
Technical Parameters
STTR human: 0.70–0.90\nSTTR AI: 0.45–0.65\nHapax template ratio human: 0.60–0.80\nHapax template ratio AI: 0.35–0.55\nClause type dominant human: <40%\nClause type dominant AI: >50%\nConsecutive template repeat human: 5–12%\nConsecutive template repeat AI: 15–30%\nParagraph-initial unique human: 60–80%\nParagraph-initial unique AI: 35–55%\nComplexity distribution entropy human: 1.8–2.2 bits\nComplexity distribution entropy AI: 1.2–1.6 bits\nMinimum sentences: 15
Accuracy & Reliability
80–87% accuracy detecting AI-generated text through syntactic diversity analysis. STTR achieves AUC of 0.86. Template recycling detection provides F1-score of 0.83. Complexity distribution entropy adds 3–4% improvement. Performs best on essays, articles, and multi-paragraph text with 20+ sentences.
Strengths
• Parse tree templates capture deep structural patterns beyond surface length\n• STTR is a simple, interpretable metric highly correlated with AI detection\n• Template recycling detection catches formulaic AI writing\n• Complexity distribution analysis reveals missing structural extremes\n• Applicable to most prose genres with sufficient length
Limitations
• Constituency parser accuracy affects template extraction\n• Some genres (legal, technical) naturally have low syntactic diversity\n• Very short texts may not contain enough sentences for meaningful STTR\n• Different parsers may produce different template inventories\n• Advanced AI models increasingly vary syntactic structures
Use Case
Detecting AI-generated essays through repetitive syntactic templates. Evaluating writing sophistication through structural variety. Identifying AI-written reports through paragraph-opening repetition. Assessing stylistic quality through syntactic repertoire analysis.