A Content Language Mined from a Markdown Corpus
Problem and outcome
A developer-relations team has two thousand Markdown tutorials and no schema. Readers finish some tutorials and abandon others. The team wants a content language that captures what its successful tutorials share, validates new tutorials against it, and guides a generator that drafts tutorials from release notes.
Forces
The corpus contains the evidence, but frequent shapes are not necessarily good ones; authors resist rules they did not choose; a generator will learn the corpus’s habits anyway; the language must evolve as the product does.
Selected composition
Roots: GOVERNED CONTENT SUBSTRATE (2) and CONTENT LANGUAGE STEWARDSHIP (7), later joined by CONTENT ENGINEERING PIPELINE (4) for generation. Operations: MINED CONTENT GRAMMAR (10), SEMANTIC MODEL IN SCHEMAS (8), CONSTRAINED MARKUP PROFILE (11), CONTROLLED VOCABULARY (12), SCHEMA CONFORMANCE VALIDATION (27), and PLAN-BOUND GENERATION (22). Techniques: DETERMINISTIC PARSE BEFORE AI (46), HUMAN APPROVAL CHECKPOINT (71) for the steward’s release decision, SUPERSESSION, NOT OVERWRITE (50) for releases, EXEMPLAR-ANCHORED GENERATION (54), and DRIFT WATCH (87). SIGNALS FROM READERS (44) supplies completion rates to help interpret which shapes work.
flowchart LR
C["Tutorial corpus<br/>(human-written)"] --> M["Mine"] --> I["Interpret<br/>with completion data"] --> G["Grammar rules"] --> R["Release 1.0"]
R --> V["Validate drafts"]
R --> E["Exemplars"] --> GEN["Generate drafts"]
R --> DW["Drift watch"] --> M
Rejected alternatives
Adopting a generic tutorial schema ignores what the team’s readers respond to. Promoting the most frequent shapes without interpretation would codify habits, including a common shape that readers abandon. Mining a corpus that already includes generated tutorials would teach the language the generator’s habits.
Handoffs, authority, and execution
Mining hands candidates with occurrences to analysts; analysts hand interpretation drafts to a designer, who writes grammar rules; the steward approves an immutable release; validators and the generator pin the release; drift reports go back to the steward quarterly.
Evaluation
Conformance of new tutorials, completion rates of conforming against non-conforming tutorials, author acceptance of generated drafts, and drift by origin.
Evidence
Pattern Miner implements mining, interpretation, grammar, review, release, validation, planning, and drift comparison; it is pre-release. Structured Markdown and Markdown Validator implement the profile and validation. The generator must be built.