Structural evidence for ‘big but vacuous’ documents — without claiming anything about how the text was written.
This metric addresses the AI-era documentation problem:
The document is just filler: structure is lazy, there are no references, it is large but useless.
This is not AI-authorship detection. It reports structural evidence — unanchored prose, low artifact
density, weak repository grounding, lazy sectioning, repetition, specificity scarcity, hollow
references, and placeholder density — without making any claim about how the text was written.
Sub-scores (.1–17.8)
Sub-score
What it captures
UnanchoredProseMass
Fraction of words living in sections with no evidence anchors.
LowArtifactDensity
1 − sat(A / (W/800); 0.5, 2.0) — too few code, tables, diagrams.
LowRepoGrounding
1 − RepositoryGroundingScore.
LazySectioning
Heading density, large-section rate, “shallow big doc” flag (W > 2,500 AND max heading depth ≤ 2).
High scores attach stable string labels reviewers can act on:
large-unanchored-prose
low-repository-grounding
lazy-sectioning
low-artifact-density
near-duplicate-paragraphs
specificity-scarcity
hollow-references
placeholder-heavy
The PR comment quotes these labels verbatim instead of paraphrasing.
Example output
Filler / Lazy Structure Risk: 0.73 HIGHTop contributors: - 71% of prose is in sections without evidence anchors - 3,420 words, only 1 relative link and 0 code examples - max heading depth = 2 with 4 sections > 1,200 words - specificity density = 1.8% (threshold: 3%-15%)
References
Pirolli, P. & Card, S. (1999). Information Foraging. Psychological Review 106(4): 643–675 —
motivates the evidence-anchor and specificity-scarcity sub-scores.
DOI.
Halliday, M. A. K. (1985). Spoken and Written Language. Oxford University Press — lexical-density
basis used by SpecificityScarcity.
Manning, C. D., Raghavan, P. & Schütze, H. (2008). Introduction to Information Retrieval, ch. 6.
Cambridge University Press — Jaccard / token-shingle methods used by RepetitionDensity.
Stanford online edition.