{
  "title": "Template Madlib: Deterministic Token Injection for Conditional IMRAD Manuscripts",
  "version": "0.1.1",
  "doi": "10.5281/zenodo.20786638",
  "doi_url": "https://doi.org/10.5281/zenodo.20786638",
  "concept_doi": "10.5281/zenodo.20786638",
  "artifact_doi": "10.5281/zenodo.20932025",
  "artifact_doi_url": "https://doi.org/10.5281/zenodo.20932025",
  "zenodo_record": "https://zenodo.org/records/20786638",
  "record_id": "20932025",
  "publication_date": "2026-06-26",
  "resource_type": {
    "title": "Journal article",
    "type": "publication",
    "subtype": "article"
  },
  "license": "MIT",
  "creators": [
    {
      "name": "Daniel Ari Friedman",
      "affiliation": "Active Inference Institute",
      "orcid": "0000-0001-6232-9096"
    }
  ],
  "description": "This exemplar asks whether a reviewable pipeline can hydrate a complete IMRAD manuscript from configuration-owned lexical data while preserving an audit trail that remains readable before and after rendering. The project deliberately keeps playful Mad Lib mechanics inside a serious reproducibility contract: the manuscript shell names large placeholders, the config declares allowable language, and the source code decides what text is emitted.\n\nThe committed seed is 431 and the current schema expands 22 slot rule(s) into 40 token choice(s) across 10 lexicon categories. The configured narrative moves are state the manuscript-generation problem, name the deterministic intervention, and summarize the audit surface. The central hypothesis is: Deterministic lexical injection can generate a complete conditional IMRAD manuscript while preserving token provenance, section intent, and audit-ready method evidence.\n\nThe result is not a claim that lexical substitution creates scholarship. It is a worked template for conditional manuscript assembly: section enablement, token provenance, figure registration, and unresolved-placeholder checks all become inspectable artifacts before the shared renderer produces PDF, HTML, and slides.\n\n---\nAssociated artifacts\nGitHub release: v0.1.1 (https://github.com/docxology/template_madlib/releases/tag/v0.1.1)\nDOI: https://doi.org/10.5281/zenodo.20786638\nZenodo: https://zenodo.org/records/20786638\nPDF SHA-256: d9248f4f372fc3baf21cbf5cc5cdb7daffe0e22e62ac6fa2e3a697a26f3308b6",
  "keywords": [
    "madlib generation",
    "token injection",
    "conditional manuscripts",
    "reproducible research",
    "IMRAD"
  ],
  "files": [
    {
      "name": "Friedman_2026_Template_d9248f4f.pdf",
      "size_bytes": 1001791,
      "checksum": "md5:32120c5f91f372ca7cb2ddfc4ac6d4b0",
      "download_url": "https://zenodo.org/api/records/20932025/files/Friedman_2026_Template_d9248f4f.pdf/content"
    }
  ],
  "related_resources": [
    {
      "type": "repository",
      "url": "https://github.com/docxology/template_madlib"
    }
  ],
  "github_repo": "docxology/template_madlib",
  "source": "zenodo-with-github",
  "checked_at": "2026-09-24T18:29:56Z",
  "github_release_url": "https://github.com/docxology/template_madlib/releases/tag/v0.1.1",
  "release_tag": "v0.1.1",
  "release_name": "Template Madlib: Deterministic Token Injection for Conditional IMRAD Manuscripts (v0.1.1)",
  "pdf_sha256": "d9248f4f372fc3baf21cbf5cc5cdb7daffe0e22e62ac6fa2e3a697a26f3308b6",
  "pairing_confidence": "strong",
  "pairing_evidence": [
    "zenodo_related_identifier_mentions_release",
    "github_repo_self_linked",
    "title_overlap"
  ],
  "domain": "Computational",
  "type": "Paper",
  "methods": [
    {
      "name": "Seeded SHA-256 digest selection of lexicon tokens per slot",
      "description": "Each slot hashes the seed, slot name, category, ordinal and full category list; the digest indexes the configured lexicon category.",
      "evidence": "Each slot combines the seed, slot name, category, ordinal, and full category list into a SHA-256 digest; the digest indexes the configured category."
    },
    {
      "name": "YAML config-owned lexicon, slots, and section conditions",
      "description": "Lexicon categories, slots, section switches, method rows and claims are declared in YAML; source code turns them into manuscript bodies.",
      "evidence": "authors declare categories, slots, section switches, method steps, and claim boundaries; source code transforms those declarations into manuscript bodies and evidence tables."
    },
    {
      "name": "Staged pipeline from config validation to hydrated Markdown",
      "description": "Validates the madlib block, builds a TokenPlan and section bodies, writes artifact JSON and a figure registry, then hydrates Markdown.",
      "evidence": "The project script first validates the madlib: block, expands slots into a TokenPlan, builds section bodies, writes artifact JSON, emits a figure registry, and only then writes hydrated Markdown under output/manuscript/."
    },
    {
      "name": "Explicit vs. loader-default config field-origin inventory",
      "description": "Classifies configuration paths as explicitly set in YAML or inherited from loader defaults and reports them as method evidence.",
      "evidence": "The config-origin inventory currently separates 125 explicit YAML path(s) from 11 loader-defaulted path(s)."
    },
    {
      "name": "Project tests and shared output validator",
      "description": "Tests check determinism, seed and category sensitivity, malformed configs, section disablement and unresolved tokens; a validator checks rendered outputs.",
      "evidence": "Project tests cover deterministic token choice, seed sensitivity, category-input sensitivity, malformed config rejection, section disablement, artifact writing, and unresolved manuscript-token detection."
    }
  ],
  "key_findings": [
    "With seed 431, the schema expands 22 slot rules into 40 token choices across 10 lexicon categories.",
    "The generated plan enabled all 11 manuscript sections and filled 40 token choices, each traced to its variable, category, section and config pointer.",
    "Re-running generation with seed 431 and the same lexicon produces the same token plan.",
    "The author frames the main result as traceability surviving a complete render path, not any particular word choice.",
    "The paper explicitly does not claim lexical replacement creates scholarship; it shows a conditional text generator can be made accountable to config, tests and validation."
  ],
  "related_papers": [
    "2023_NSFReporting",
    "2023_NaturalAIBased",
    "2025_AuBI"
  ],
  "related_software": [
    "docxology/template_madlib"
  ],
  "key_findings_evidence": [
    "The committed seed is 431 and the current schema expands 22 slot rule(s) into 40 token choice(s) across 10 lexicon categories.",
    "The generated plan enables 11 of 11 manuscript sections and fills 40 token choice(s).",
    "Re-running generation with seed 431 and the same lexicon produces the same token plan.",
    "The important result is therefore not a surprising word choice; it is the survival of traceability through a complete render path.",
    "It shows that a conditional text generator can be made accountable to configuration, tests, and render-time validation."
  ],
  "summary_provenance": {
    "source": "full_text.md",
    "date": "2026-10-01",
    "work_kind": "software/methods",
    "method": "Evidence-grounded extraction from full_text.md: every method and finding carries a verbatim quote from the paper text, mechanically verified to occur in full_text.md (whitespace/ligature-normalized) before merge.",
    "notes": "Self-generated exemplar manuscript; contribution claims are explicitly labelled as local exemplar claims with no empirical validation.",
    "reviewed": "2026-10-01 independent review of every item against its quote and context; no corrections needed"
  }
}
