{
 "paper": "humor-embeddings",
 "a": "1.0",
 "b": "2.2",
 "summary": "From v1.0 (16 Feb) to v2.2 (23 Feb): 5,802 words to 11,541 words, 9,242 words in new or rewritten paragraphs and 3,503 taken out, 519 paragraphs changed.",
 "note": {
  "title": "Rewritten as LIMBIC: formal definitions, 37 references, test plan",
  "kind": "major-rewrite",
  "body": "## Summary\n\nThe paper is rewritten almost from scratch and renamed LIMBIC. It doubles in length. The informal sections give way to numbered definitions, a justified multiplicative score, a literature review and a full validation plan. Its own changelog says the rewrite came from a round of reviews by two models.\n\n- The memory-humor link becomes a formal proposition, and the shape of the score is justified with Suls' two-stage model of jokes.\n- The twelve relationships are regrouped into five families and tied to the General Theory of Verbal Humor.\n- Related work grows from 24 to 37 references.\n- The pilot is clarified (15 concept triplets, not 15 people) and four score variants are compared; the surprise-weighted score comes with a worked example.\n- New: a power analysis, rater-agreement targets, dataset checks and an embedding-model ablation.\n- Dropped: the \"seven sins of AI humor\", the tier list and the open-questions section.",
  "source": "change note"
 },
 "paragraphs_changed": 519,
 "changes": [
  {
   "section": "Bisociation in Embedding Space: A Computational Framework for Machine Humor",
   "old": "# Bisociation in Embedding Space: A Computational Framework for Machine Humor",
   "new": null,
   "marked": "[-# Bisociation in Embedding Space: A Computational Framework for Machine Humor-]"
  },
  {
   "section": "Bisociation in Embedding Space: A Computational Framework for Machine Humor",
   "old": "**Authors:** JarvisOne (AI) & a second AI agent, supervised by Oscar Serra **Date:** February 2026",
   "new": null,
   "marked": "[-**Authors:** JarvisOne (AI) & a second AI agent, supervised by Oscar Serra **Date:** February 2026-]"
  },
  {
   "section": "Bisociation in Embedding Space: A Computational Framework for Machine Humor",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "Abstract",
   "old": "## Abstract",
   "new": null,
   "marked": "[-## Abstract-]"
  },
  {
   "section": "Abstract",
   "old": "We propose a formal framework for computational humor generation based on vector embeddings, operationalizing Arthur Koestler's bisociation theory (1964) with modern semantic vector spaces. Our key insight: **humor exploits the same embedding infrastructure as memory retrieval, but with an inverted search strategy** — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence. We present a computable humor potential function, identify 12 fundamental semantic relationships underlying humor patterns, propose humor associations as a first-class memory relationship type for learning agents, and provide empirical validation including a pilot study whose negative results led to a revised surprise-weighted formula. We position this work within existing computational humor literature and discuss limitations including cultural specificity and the delivery gap.",
   "new": null,
   "marked": "[-We propose a formal framework for computational humor generation based on vector embeddings, operationalizing Arthur Koestler's bisociation theory (1964) with modern semantic vector spaces. Our key insight: **humor exploits the same embedding infrastructure as memory retrieval, but with an inverted search strategy** — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence. We present a computable humor potential function, identify 12 fundamental semantic relationships underlying humor patterns, propose humor associations as a first-class memory relationship type for learning agents, and provide empirical validation including a pilot study whose negative results led to a revised surprise-weighted formula. We position this work within existing computational humor literature and discuss limitations including cultural specificity and the delivery gap.-]"
  },
  {
   "section": "Abstract",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "",
   "old": null,
   "new": "> **Changelog v2.1 → v2.2 (2026-02-16).** Round Table Round 3 fixes: (1) Added recommended threshold ranges for τ_v and τ_σ in Definition 2 (Humor Zone) with calibration guidance. (2) Added engineering-defaults caveat to staleness model parameters (§8.3), consistent with §3.5 callback treatment. (3) Added end-to-end computational complexity summary for h_v2 evaluation (§9.5).",
   "marked": "{+> **Changelog v2.1 → v2.2 (2026-02-16).** Round Table Round 3 fixes: (1) Added recommended threshold ranges for τ_v and τ_σ in Definition 2 (Humor Zone) with calibration guidance. (2) Added engineering-defaults caveat to staleness model parameters (§8.3), consistent with §3.5 callback treatment. (3) Added end-to-end computational complexity summary for h_v2 evaluation (§9.5).+}"
  },
  {
   "section": "",
   "old": null,
   "new": "> **Changelog v2.0 → v2.1 (2026-02-16).** Round Table Round 2 fixes: (1) Fixed duplicate §7.1.2 numbering (second instance → §7.1.3). (2) Added forward-reference note in Definition 2 (Humor Zone) pointing to Definition 3 for $v$ and $\\sigma$. (3) Cited Ritchie (2004) in §1.4 (was dangling reference). (4) Added $k$-sensitivity analysis to surprise function (§7.1.1). (5) Clarified callback bonus parameter sourcing as engineering defaults, not empirical measurements (§3.5). (6) Specified context vector computation for embedding arithmetic (§6.2). (7) Added infrastructure assumptions to pipeline latency estimates (§6.7).",
   "marked": "{+> **Changelog v2.0 → v2.1 (2026-02-16).** Round Table Round 2 fixes: (1) Fixed duplicate §7.1.2 numbering (second instance → §7.1.3). (2) Added forward-reference note in Definition 2 (Humor Zone) pointing to Definition 3 for $v$ and $\\sigma$. (3) Cited Ritchie (2004) in §1.4 (was dangling reference). (4) Added $k$-sensitivity analysis to surprise function (§7.1.1). (5) Clarified callback bonus parameter sourcing as engineering defaults, not empirical measurements (§3.5). (6) Specified context vector computation for embedding arithmetic (§6.2). (7) Added infrastructure assumptions to pipeline latency estimates (§6.7).+}"
  },
  {
   "section": "",
   "old": null,
   "new": "> **Changelog v1.0 → v2.0 (2026-02-16).** Major revision targeting publication readiness via Round Table consensus (PG, PGem, 2026-02-16). Key changes: (1) **Strengthened formalism**: formalized the memory-humor correspondence as a proposition (§1.2); justified the multiplicative functional form via Suls' two-stage model (§3.2); added formal definitions of the humor zone (Def. 3), bridge quality (Def. 4), and properties of $h$ (Prop. 2); justified the surprise metric as a tractable approximation to information-theoretic surprise (§7.1.1). (2) **Expanded related work** from 24 to 37 references, adding Hurley et al. (2011), Coulson (2001), Kao et al. (2016), Martin (2007), and 9 others. (3) **Clarified pilot study**: $n = 15$ concept triplets (not participants); defined all formula variants (v1–v4) as systematic exploration. (4) **Strengthened validation protocol** with formal power analysis ($N \\geq 64$, Cohen's $r = 0.35$), inter-rater reliability target (Krippendorff's $\\alpha \\geq 0.667$), Latin square stimulus presentation, and cross-embedding-model ablation. (5) **Added embedding model requirements** subsection (§9.2). (6) **Renumbered patterns** 1–12 sequentially within meta-categories. (7) **Updated companion paper cross-references** to ENGRAM, CORTEX, SYNAPSE consistently.",
   "marked": "{+> **Changelog v1.0 → v2.0 (2026-02-16).** Major revision targeting publication readiness via Round Table consensus (PG, PGem, 2026-02-16). Key changes: (1) **Strengthened formalism**: formalized the memory-humor correspondence as a proposition (§1.2); justified the multiplicative functional form via Suls' two-stage model (§3.2); added formal definitions of the humor zone (Def. 3), bridge quality (Def. 4), and properties of $h$ (Prop. 2); justified the surprise metric as a tractable approximation to information-theoretic surprise (§7.1.1). (2) **Expanded related work** from 24 to 37 references, adding Hurley et al. (2011), Coulson (2001), Kao et al. (2016), Martin (2007), and 9 others. (3) **Clarified pilot study**: $n = 15$ concept triplets (not participants); defined all formula variants (v1–v4) as systematic exploration. (4) **Strengthened validation protocol** with formal power analysis ($N \\geq 64$, Cohen's $r = 0.35$), inter-rater reliability target (Krippendorff's $\\alpha \\geq 0.667$), Latin square stimulus presentation, and cross-embedding-model ablation. (5) **Added embedding model requirements** subsection (§9.2). (6) **Renumbered patterns** 1–12 sequentially within meta-categories. (7) **Updated companion paper cross-references** to ENGRAM, CORTEX, SYNAPSE consistently.+}"
  },
  {
   "section": "1. Introduction",
   "old": "## 1. Introduction",
   "new": "# 1. Introduction",
   "marked": "[-##-] {+#+} 1. Introduction"
  },
  {
   "section": "1.1 The Problem Current AI humor is terrible. LLMs produce jokes that are technically structured but rarely funny. The fundamental issue: language models are trained to maximize probability, while humor requires *improbability constrained by coherence*.",
   "old": "### 1.1 The Problem Current AI humor is terrible. LLMs produce jokes that are technically structured but rarely funny. The fundamental issue: language models are trained to maximize probability, while humor requires *improbability constrained by coherence*.",
   "new": null,
   "marked": "[-### 1.1 The Problem Current AI humor is terrible. LLMs produce jokes that are technically structured but rarely funny. The fundamental issue: language models are trained to maximize probability, while humor requires *improbability constrained by coherence*.-]"
  },
  {
   "section": "1.2 Key Insight AI systems already possess the infrastructure for humor — vector embeddings encode semantic relationships between concepts. The same `sqlite-vec` index that finds \"what's similar to X\" can find \"what's surprisingly distant from X but connected through Y.\"",
   "old": "### 1.2 Key Insight AI systems already possess the infrastructure for humor — vector embeddings encode semantic relationships between concepts. The same `sqlite-vec` index that finds \"what's similar to X\" can find \"what's surprisingly distant from X but connected through Y.\"",
   "new": null,
   "marked": "[-### 1.2 Key Insight AI systems already possess the infrastructure for humor — vector embeddings encode semantic relationships between concepts. The same `sqlite-vec` index that finds \"what's similar to X\" can find \"what's surprisingly distant from X but connected through Y.\"-]"
  },
  {
   "section": "1.3 Thesis Statement",
   "old": "### 1.3 Thesis Statement",
   "new": null,
   "marked": "[-### 1.3 Thesis Statement-]"
  },
  {
   "section": "1.3 Thesis Statement",
   "old": "We argue that **humor is a computable function over vector embeddings**, and that the same infrastructure used for semantic memory retrieval can generate humor through an inverted search strategy. We formalize this claim by: (1) defining a `humor_potential` function grounded in Koestler's bisociation theory (§2), (2) identifying 12 fundamental semantic relationships that underlie humor patterns (§3), (3) proposing ethical constraints as a pre-scoring gate (§4), (4) analyzing why current LLMs fail at humor and how memory systems address these failures (§5), (5) presenting five complementary bridge-discovery algorithms (§6), and (6) outlining an empirical validation methodology with specific success criteria (§8).",
   "new": null,
   "marked": "[-We argue that **humor is a computable function over vector embeddings**, and that the same infrastructure used for semantic memory retrieval can generate humor through an inverted search strategy. We formalize this claim by: (1) defining a `humor_potential` function grounded in Koestler's bisociation theory (§2), (2) identifying 12 fundamental semantic relationships that underlie humor patterns (§3), (3) proposing ethical constraints as a pre-scoring gate (§4), (4) analyzing why current LLMs fail at humor and how memory systems address these failures (§5), (5) presenting five complementary bridge-discovery algorithms (§6), and (6) outlining an empirical validation methodology with specific success criteria (§8).-]"
  },
  {
   "section": "1.4 Historical Context Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible contexts. We argue this is precisely an embedding space operation: finding two concepts with high vector distance but connected by a coherent bridge concept.",
   "old": "### 1.4 Historical Context Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible contexts. We argue this is precisely an embedding space operation: finding two concepts with high vector distance but connected by a coherent bridge concept.",
   "new": null,
   "marked": "[-### 1.4 Historical Context Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible contexts. We argue this is precisely an embedding space operation: finding two concepts with high vector distance but connected by a coherent bridge concept.-]"
  },
  {
   "section": "1.4 Historical Context Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible contexts. We argue this is precisely an embedding space operation: finding two concepts with high vector distance but connected by a coherent bridge concept.",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "2. Related Work",
   "old": "## 2. Related Work",
   "new": null,
   "marked": "[-## 2. Related Work-]"
  },
  {
   "section": "2. Related Work",
   "old": "Computational humor has been studied from multiple angles, though no prior work has formally operationalized bisociation as an embedding space operation.",
   "new": null,
   "marked": "[-Computational humor has been studied from multiple angles, though no prior work has formally operationalized bisociation as an embedding space operation.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Incongruity-Resolution Theory.** Suls (1972) proposed that humor arises from perceiving an incongruity followed by its resolution. Ritchie (2004) formalized this computationally, though without vector space representations. Our `humor_potential` function can be seen as a continuous relaxation of incongruity-resolution: `distance(A,B)` captures incongruity, while `coherence(bridge, A) × coherence(bridge, B)` captures resolution.",
   "new": null,
   "marked": "[-**Incongruity-Resolution Theory.** Suls (1972) proposed that humor arises from perceiving an incongruity followed by its resolution. Ritchie (2004) formalized this computationally, though without vector space representations. Our `humor_potential` function can be seen as a continuous relaxation of incongruity-resolution: `distance(A,B)` captures incongruity, while `coherence(bridge, A) × coherence(bridge, B)` captures resolution.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Humor Recognition.** Bertero and Fung (2016) applied CNNs and RNNs to humor recognition in conversational data, achieving 0.69 F1 on the Switchboard corpus. Yang et al. (2015) used Word2Vec features for humor recognition in Yelp reviews. These approaches are *passive* (classify existing humor) rather than *generative* (produce new humor), which is our focus.",
   "new": null,
   "marked": "[-**Humor Recognition.** Bertero and Fung (2016) applied CNNs and RNNs to humor recognition in conversational data, achieving 0.69 F1 on the Switchboard corpus. Yang et al. (2015) used Word2Vec features for humor recognition in Yelp reviews. These approaches are *passive* (classify existing humor) rather than *generative* (produce new humor), which is our focus.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Computational Humor Generation.** JAPE (Binsted & Ritchie, 1994) and HAHAcronym (Stock & Strapparava, 2003) generated puns using hand-crafted lexical rules. More recently, Yu et al. (2018) used neural models for pun generation, and Luo et al. (2019) applied GPT-2 to joke completion. These approaches rely on template structures or fine-tuning rather than a generalizable mathematical framework.",
   "new": null,
   "marked": "[-**Computational Humor Generation.** JAPE (Binsted & Ritchie, 1994) and HAHAcronym (Stock & Strapparava, 2003) generated puns using hand-crafted lexical rules. More recently, Yu et al. (2018) used neural models for pun generation, and Luo et al. (2019) applied GPT-2 to joke completion. These approaches rely on template structures or fine-tuning rather than a generalizable mathematical framework.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Bisociation in AI.** Dubitzky et al. (2012) explored bisociation in data mining but focused on knowledge discovery, not humor. Pereira et al. (2019) implemented bisociative concept blending for computational creativity, the closest work to ours, though they did not formalize the operation in embedding space or provide a computable scoring function.",
   "new": null,
   "marked": "[-**Bisociation in AI.** Dubitzky et al. (2012) explored bisociation in data mining but focused on knowledge discovery, not humor. Pereira et al. (2019) implemented bisociative concept blending for computational creativity, the closest work to ours, though they did not formalize the operation in embedding space or provide a computable scoring function.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Embedding Space Arithmetic.** Mikolov et al. (2013) demonstrated that word embeddings support analogical reasoning via vector arithmetic. Our bridge discovery mechanism (§8.1) extends this insight: if `king - man + woman = queen` captures analogy, then `A - context_A + context_B` captures the creative leap that humor requires.",
   "new": null,
   "marked": "[-**Embedding Space Arithmetic.** Mikolov et al. (2013) demonstrated that word embeddings support analogical reasoning via vector arithmetic. Our bridge discovery mechanism (§8.1) extends this insight: if `king - man + woman = queen` captures analogy, then `A - context_A + context_B` captures the creative leap that humor requires.-]"
  },
  {
   "section": "2. Related Work",
   "old": "**Our Contribution.** Unlike prior work that either (a) classifies existing humor passively, (b) generates humor from templates, or (c) fine-tunes language models on joke corpora, we propose a **framework-level formalization** that is generative, generalizable across humor types, and runs on any existing embedding index without additional training.",
   "new": null,
   "marked": "[-**Our Contribution.** Unlike prior work that either (a) classifies existing humor passively, (b) generates humor from templates, or (c) fine-tunes language models on joke corpora, we propose a **framework-level formalization** that is generative, generalizable across humor types, and runs on any existing embedding index without additional training.-]"
  },
  {
   "section": "2.1 Systematic Comparison with Existing Approaches",
   "old": "### 2.1 Systematic Comparison with Existing Approaches",
   "new": null,
   "marked": "[-### 2.1 Systematic Comparison with Existing Approaches-]"
  },
  {
   "section": "2.1 Systematic Comparison with Existing Approaches",
   "old": "| Approach | Type | Generalizable? | Needs Training? | Humor Theory | Bridge Concept | |----------|------|---------------|-----------------|--------------|----------------| | JAPE (Binsted & Ritchie, 1994) | Generative | Puns only | No (rule-based) | Phonological | N/A | | HAHAcronym (Stock & Strapparava, 2003) | Generative | Acronyms only | No (rule-based) | Lexical substitution | N/A | | Bertero & Fung (2016) | Recognition | Dialogue only | Yes (CNN/RNN) | None (learned) | N/A | | Yu et al. (2018) | Generative | Puns only | Yes (neural) | Homophony | N/A | | Luo et al. (2019) | Generative | Jokes only | Yes (GPT-2 fine-tune) | None (learned) | N/A | | LLM prompting (2023+) | Generative | Broad | No (prompt-based) | None (implicit) | N/A | | **This work** | **Framework** | **All 12 types** | **No** | **Bisociation (Koestler)** | **Explicit** |",
   "new": null,
   "marked": "[-| Approach | Type | Generalizable? | Needs Training? | Humor Theory | Bridge Concept | |----------|------|---------------|-----------------|--------------|----------------| | JAPE (Binsted & Ritchie, 1994) | Generative | Puns only | No (rule-based) | Phonological | N/A | | HAHAcronym (Stock & Strapparava, 2003) | Generative | Acronyms only | No (rule-based) | Lexical substitution | N/A | | Bertero & Fung (2016) | Recognition | Dialogue only | Yes (CNN/RNN) | None (learned) | N/A | | Yu et al. (2018) | Generative | Puns only | Yes (neural) | Homophony | N/A | | Luo et al. (2019) | Generative | Jokes only | Yes (GPT-2 fine-tune) | None (learned) | N/A | | LLM prompting (2023+) | Generative | Broad | No (prompt-based) | None (implicit) | N/A | | **This work** | **Framework** | **All 12 types** | **No** | **Bisociation (Koestler)** | **Explicit** |-]"
  },
  {
   "section": "2.1 Systematic Comparison with Existing Approaches",
   "old": "**Key differentiators:** (1) We provide an explicit, computable scoring function rather than relying on learned representations; (2) our framework covers 12 distinct humor types rather than a single subtype; (3) the bridge concept is a first-class element of the formalization, enabling both generation and explanation of why a joke works.",
   "new": null,
   "marked": "[-**Key differentiators:** (1) We provide an explicit, computable scoring function rather than relying on learned representations; (2) our framework covers 12 distinct humor types rather than a single subtype; (3) the bridge concept is a first-class element of the formalization, enabling both generation and explanation of why a joke works.-]"
  },
  {
   "section": "2.1 Systematic Comparison with Existing Approaches",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "3. The Humor Equation",
   "old": "## 3. The Humor Equation",
   "new": null,
   "marked": "[-## 3. The Humor Equation-]"
  },
  {
   "section": "2.1 Core Formula",
   "old": "### 2.1 Core Formula",
   "new": null,
   "marked": "[-### 2.1 Core Formula-]"
  },
  {
   "section": "2.1 Core Formula",
   "old": "``` humor_potential(A, B, bridge) = distance(A, B) × coherence(bridge, A) × coherence(bridge, B) ```",
   "new": null,
   "marked": "[-``` humor_potential(A, B, bridge) = distance(A, B) × coherence(bridge, A) × coherence(bridge, B) ```-]"
  },
  {
   "section": "2.1 Core Formula",
   "old": "Where: - `A, B` = two concepts (embedding vectors) - `bridge` = the connecting concept that makes the juxtaposition coherent - `distance(A, B)` = cosine distance in embedding space (0.0–2.0) - `coherence(x, y)` = 1 - cosine_distance(x, y), measuring semantic relatedness",
   "new": null,
   "marked": "[-Where: - `A, B` = two concepts (embedding vectors) - `bridge` = the connecting concept that makes the juxtaposition coherent - `distance(A, B)` = cosine distance in embedding space (0.0–2.0) - `coherence(x, y)` = 1 - cosine_distance(x, y), measuring semantic relatedness-]"
  },
  {
   "section": "2.2 Extended Formula",
   "old": "### 2.2 Extended Formula",
   "new": null,
   "marked": "[-### 2.2 Extended Formula-]"
  },
  {
   "section": "2.2 Extended Formula",
   "old": "The base formula lacks temporal and audience dimensions. Extended version:",
   "new": null,
   "marked": "[-The base formula lacks temporal and audience dimensions. Extended version:-]"
  },
  {
   "section": "2.2 Extended Formula",
   "old": "``` humor_potential(A, B, bridge, audience, timing) = distance(A, B) × coherence(bridge, A) × coherence(bridge, B) × familiarity(audience, A) × familiarity(audience, B) × (1 + callback_bonus(timing)) ```",
   "new": null,
   "marked": "[-``` humor_potential(A, B, bridge, audience, timing) = distance(A, B) × coherence(bridge, A) × coherence(bridge, B) × familiarity(audience, A) × familiarity(audience, B) × (1 + callback_bonus(timing)) ```-]"
  },
  {
   "section": "2.2 Extended Formula",
   "old": "Where: - `familiarity(audience, X)` = how well the audience knows concept X (0.0–1.0). A quark joke scores 0.9 familiarity for a physicist, 0.1 for a non-scientist. **The sweet spot [0.6, 0.95] is NOT universal — it shifts based on audience knowledge.**",
   "new": null,
   "marked": "[-Where: - `familiarity(audience, X)` = how well the audience knows concept X (0.0–1.0). A quark joke scores 0.9 familiarity for a physicist, 0.1 for a non-scientist. **The sweet spot [0.6, 0.95] is NOT universal — it shifts based on audience knowledge.**-]"
  },
  {
   "section": "2.3 Callback Bonus with Temporal Decay",
   "old": "### 2.3 Callback Bonus with Temporal Decay",
   "new": null,
   "marked": "[-### 2.3 Callback Bonus with Temporal Decay-]"
  },
  {
   "section": "2.3 Callback Bonus with Temporal Decay",
   "old": "The original `callback_bonus = log(1 + hours) / 10` was a placeholder. Empirical observation: callbacks have a sweet spot (1 week to 3 months), after which they decay — the audience forgets the reference.",
   "new": null,
   "marked": "[-The original `callback_bonus = log(1 + hours) / 10` was a placeholder. Empirical observation: callbacks have a sweet spot (1 week to 3 months), after which they decay — the audience forgets the reference.-]"
  },
  {
   "section": "2.3 Callback Bonus with Temporal Decay",
   "old": "**Refined formula:**",
   "new": null,
   "marked": "[-**Refined formula:**-]"
  },
  {
   "section": "2.3 Callback Bonus with Temporal Decay",
   "old": "```python def callback_bonus(hours_since: float) -> float: \"\"\" Callback humor multiplier with temporal decay.",
   "new": null,
   "marked": "[-```python def callback_bonus(hours_since: float) -> float: \"\"\" Callback humor multiplier with temporal decay.-]"
  },
  {
   "section": "2.3 Callback Bonus with Temporal Decay",
   "old": "Sweet spot: 168 hours (1 week) to 2160 hours (3 months) Peak: around 504 hours (3 weeks) Decay: after 3 months, reference may be forgotten \"\"\" if hours_since < 1: return 0.0 # Too recent, not a \"callback\"",
   "new": null,
   "marked": "[-Sweet spot: 168 hours (1 week) to 2160 hours (3 months) Peak: around 504 hours (3 weeks) Decay: after 3 months, reference may be forgotten \"\"\" if hours_since < 1: return 0.0 # Too recent, not a \"callback\"-]"
  },
  {
   "section": "Growth phase: log growth up to 3 months base_bonus = min(log(1 + hours_since) / 10, 1.0)",
   "old": "# Growth phase: log growth up to 3 months base_bonus = min(log(1 + hours_since) / 10, 1.0)",
   "new": null,
   "marked": "[-# Growth phase: log growth up to 3 months base_bonus = min(log(1 + hours_since) / 10, 1.0)-]"
  },
  {
   "section": "Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours",
   "old": "# Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours",
   "new": null,
   "marked": "[-# Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours-]"
  },
  {
   "section": "Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours",
   "old": "if hours_since <= DECAY_START: decay_factor = 1.0 elif hours_since >= DECAY_END: decay_factor = 0.1 # Floor — legendary callbacks still work else: # Linear decay from 1.0 to 0.1 over 9 months decay_factor = 1.0 - 0.9 * (hours_since - DECAY_START) / (DECAY_END - DECAY_START)",
   "new": null,
   "marked": "[-if hours_since <= DECAY_START: decay_factor = 1.0 elif hours_since >= DECAY_END: decay_factor = 0.1 # Floor — legendary callbacks still work else: # Linear decay from 1.0 to 0.1 over 9 months decay_factor = 1.0 - 0.9 * (hours_since - DECAY_START) / (DECAY_END - DECAY_START)-]"
  },
  {
   "section": "Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours",
   "old": "return base_bonus * decay_factor ```",
   "new": null,
   "marked": "[-return base_bonus * decay_factor ```-]"
  },
  {
   "section": "Decay phase: after 3 months (2160 hours), memory fades DECAY_START = 2160 # 3 months in hours DECAY_END = 8760 # 1 year in hours",
   "old": "**Intuition:** - **< 1 hour:** Not a callback, just a repeat - **1 hour - 1 week:** Growing callback potential - **1 week - 3 months:** Peak callback zone (audience remembers but is surprised) - **3 months - 1 year:** Decaying (audience may forget) - **> 1 year:** Legendary callbacks (rare but powerful when they land)",
   "new": null,
   "marked": "[-**Intuition:** - **< 1 hour:** Not a callback, just a repeat - **1 hour - 1 week:** Growing callback potential - **1 week - 3 months:** Peak callback zone (audience remembers but is surprised) - **3 months - 1 year:** Decaying (audience may forget) - **> 1 year:** Legendary callbacks (rare but powerful when they land)-]"
  },
  {
   "section": "2.4 Visual: Humor in Embedding Space",
   "old": "### 2.4 Visual: Humor in Embedding Space",
   "new": null,
   "marked": "[-### 2.4 Visual: Humor in Embedding Space-]"
  },
  {
   "section": "1.1 Motivation",
   "old": null,
   "new": "## 1.1 Motivation",
   "marked": "{+## 1.1 Motivation+}"
  },
  {
   "section": "1.1 Motivation",
   "old": null,
   "new": "Despite remarkable advances in natural language generation, artificial humor remains a largely unsolved problem. Large language models (LLMs) produce text that is syntactically well-formed and semantically coherent, yet rarely genuinely funny. We argue that this failure is not incidental but structural: language models are trained to maximize token-level likelihood, while humor requires *low-probability completions constrained by high coherence* — precisely the opposite of the training objective (Winters et al., 2021). Hurley, Dennett, and Adams (2011) propose that humor evolved as a reward signal for detecting errors in mental models — a \"debugging of belief structures\" — suggesting that humor is fundamentally computational, not merely linguistic.",
   "marked": "{+Despite remarkable advances in natural language generation, artificial humor remains a largely unsolved problem. Large language models (LLMs) produce text that is syntactically well-formed and semantically coherent, yet rarely genuinely funny. We argue that this failure is not incidental but structural: language models are trained to maximize token-level likelihood, while humor requires *low-probability completions constrained by high coherence* — precisely the opposite of the training objective (Winters et al., 2021). Hurley, Dennett, and Adams (2011) propose that humor evolved as a reward signal for detecting errors in mental models — a \"debugging of belief structures\" — suggesting that humor is fundamentally computational, not merely linguistic.+}"
  },
  {
   "section": "1.1 Motivation",
   "old": null,
   "new": "This observation points toward a deeper question: what computational mechanism could *generate* humor rather than merely *classify* it? Existing approaches fall into three categories: rule-based template systems (Binsted & Ritchie, 1994), corpus-driven classifiers (Weller & Seppi, 2019; Tian et al., 2022), and fine-tuned language models (Luo et al., 2019). None provides a generalizable, theory-grounded, generative framework that operates without humor-specific training data.",
   "marked": "{+This observation points toward a deeper question: what computational mechanism could *generate* humor rather than merely *classify* it? Existing approaches fall into three categories: rule-based template systems (Binsted & Ritchie, 1994), corpus-driven classifiers (Weller & Seppi, 2019; Tian et al., 2022), and fine-tuned language models (Luo et al., 2019). None provides a generalizable, theory-grounded, generative framework that operates without humor-specific training data.+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "## 1.2 The Memory-Humor Correspondence",
   "marked": "{+## 1.2 The Memory-Humor Correspondence+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "Our central insight emerges from an unexpected source: the infrastructure of semantic memory retrieval. Modern AI agents use vector embeddings to retrieve semantically relevant memories — querying an embedding index for vectors *close* to a query vector. We observe that humor generation requires the *same* infrastructure with an *inverted* search strategy: instead of seeking proximity, humor seeks calibrated distance bridged by unexpected coherence.",
   "marked": "{+Our central insight emerges from an unexpected source: the infrastructure of semantic memory retrieval. Modern AI agents use vector embeddings to retrieve semantically relevant memories — querying an embedding index for vectors *close* to a query vector. We observe that humor generation requires the *same* infrastructure with an *inverted* search strategy: instead of seeking proximity, humor seeks calibrated distance bridged by unexpected coherence.+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "We formalize this as follows:",
   "marked": "{+We formalize this as follows:+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "**Definition 1 (Memory-Humor Correspondence).** Let $\\mathcal{E} = \\{e_1, \\ldots, e_N\\}$ be a set of concept embeddings in $\\mathbb{R}^n$ indexed for nearest-neighbor retrieval. Define two operations on $\\mathcal{E}$:",
   "marked": "{+**Definition 1 (Memory-Humor Correspondence).** Let $\\mathcal{E} = \\{e_1, \\ldots, e_N\\}$ be a set of concept embeddings in $\\mathbb{R}^n$ indexed for nearest-neighbor retrieval. Define two operations on $\\mathcal{E}$:+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "- **Memory retrieval**: Given query $q$, return $\\arg\\min_{e \\in \\mathcal{E}} d(q, e)$ — the nearest neighbor by cosine distance. - **Humor retrieval**: Given query $q$, return $\\arg\\max_{e \\in \\mathcal{E}} h(q, e, \\beta^*(q, e))$ — the concept maximizing humor potential via an optimal bridge $\\beta^*$.",
   "marked": "{+- **Memory retrieval**: Given query $q$, return $\\arg\\min_{e \\in \\mathcal{E}} d(q, e)$ — the nearest neighbor by cosine distance. - **Humor retrieval**: Given query $q$, return $\\arg\\max_{e \\in \\mathcal{E}} h(q, e, \\beta^*(q, e))$ — the concept maximizing humor potential via an optimal bridge $\\beta^*$.+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "Both operations use the same index $\\mathcal{E}$, the same distance metric $d$, and the same embedding space. They differ only in the optimization objective: memory minimizes distance; humor maximizes a function of distance, bridge validity, and bridge surprise.",
   "marked": "{+Both operations use the same index $\\mathcal{E}$, the same distance metric $d$, and the same embedding space. They differ only in the optimization objective: memory minimizes distance; humor maximizes a function of distance, bridge validity, and bridge surprise.+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "**Proposition 1 (Inverted Optimization).** Memory retrieval and humor generation are operations on the same embedding index with inverted optimization objectives. Formally, if memory solves $\\min_e d(q, e)$, humor solves a constrained problem:",
   "marked": "{+**Proposition 1 (Inverted Optimization).** Memory retrieval and humor generation are operations on the same embedding index with inverted optimization objectives. Formally, if memory solves $\\min_e d(q, e)$, humor solves a constrained problem:+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "$$\\max_{e \\in \\mathcal{E}} \\; d(q, e) \\cdot v(\\beta^*, q, e) \\cdot \\sigma(\\beta^* \\mid q, e) \\quad \\text{subject to} \\quad d(q, e) \\in [\\delta_{\\min}, \\delta_{\\max}]$$",
   "marked": "{+$$\\max_{e \\in \\mathcal{E}} \\; d(q, e) \\cdot v(\\beta^*, q, e) \\cdot \\sigma(\\beta^* \\mid q, e) \\quad \\text{subject to} \\quad d(q, e) \\in [\\delta_{\\min}, \\delta_{\\max}]$$+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "where $v$ is bridge validity, $\\sigma$ is bridge surprise, and $[\\delta_{\\min}, \\delta_{\\max}]$ is the humor-productive distance range (Section 3.4).",
   "marked": "{+where $v$ is bridge validity, $\\sigma$ is bridge surprise, and $[\\delta_{\\min}, \\delta_{\\max}]$ is the humor-productive distance range (Section 3.4).+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "This correspondence is more than an analogy: it implies that any system equipped with a semantic embedding index already possesses the infrastructure for humor generation. The creative challenge reduces to *inverting the retrieval objective* and *discovering bridge concepts*.",
   "marked": "{+This correspondence is more than an analogy: it implies that any system equipped with a semantic embedding index already possesses the infrastructure for humor generation. The creative challenge reduces to *inverting the retrieval objective* and *discovering bridge concepts*.+}"
  },
  {
   "section": "1.2 The Memory-Humor Correspondence",
   "old": null,
   "new": "**Status.** Proposition 1 is a conjecture. It holds by construction for the operations as defined; the empirical question is whether the resulting humor potential function correlates with human judgments of funniness. We provide protocols for testing this in Section 7.2.",
   "marked": "{+**Status.** Proposition 1 is a conjecture. It holds by construction for the operations as defined; the empirical question is whether the resulting humor potential function correlates with human judgments of funniness. We provide protocols for testing this in Section 7.2.+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "## 1.3 Contributions",
   "marked": "{+## 1.3 Contributions+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "This paper makes five contributions:",
   "marked": "{+This paper makes five contributions:+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "1. **Formalization of bisociation as embedding geometry** (Section 3): We define a computable humor potential function $h(A, B, \\beta)$ that maps Koestler's (1964) bisociation theory to geometric operations over vector embeddings, with the multiplicative form justified by Suls' (1972) two-stage incongruity-resolution model.",
   "marked": "{+1. **Formalization of bisociation as embedding geometry** (Section 3): We define a computable humor potential function $h(A, B, \\beta)$ that maps Koestler's (1964) bisociation theory to geometric operations over vector embeddings, with the multiplicative form justified by Suls' (1972) two-stage incongruity-resolution model.+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "2. **Falsification and revision** (Section 7.1): A computational pilot demonstrates that naive cosine-based coherence fails to predict humor, motivating a surprise-weighted revision that decomposes bridge quality into independent validity and surprise components.",
   "marked": "{+2. **Falsification and revision** (Section 7.1): A computational pilot demonstrates that naive cosine-based coherence fails to predict humor, motivating a surprise-weighted revision that decomposes bridge quality into independent validity and surprise components.+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "3. **Humor pattern taxonomy** (Section 4): We identify 12 humor-generating semantic patterns, organized into five meta-categories, each defined as a specific embedding space operation, derived from the intersection of GTVH Knowledge Resources and embedding-space operation types.",
   "marked": "{+3. **Humor pattern taxonomy** (Section 4): We identify 12 humor-generating semantic patterns, organized into five meta-categories, each defined as a specific embedding space operation, derived from the intersection of GTVH Knowledge Resources and embedding-space operation types.+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "4. **Bridge discovery algorithms** (Section 6): We propose five complementary methods for finding bridge concepts, with computational complexity analysis and a formal bridge quality criterion.",
   "marked": "{+4. **Bridge discovery algorithms** (Section 6): We propose five complementary methods for finding bridge concepts, with computational complexity analysis and a formal bridge quality criterion.+}"
  },
  {
   "section": "1.3 Contributions",
   "old": null,
   "new": "5. **Humor as agent memory** (Section 8): We propose humor associations as a first-class relationship type in agent memory architectures (connecting to the ENGRAM substrate; Serra, 2026a), enabling personalized humor calibration through reinforcement.",
   "marked": "{+5. **Humor as agent memory** (Section 8): We propose humor associations as a first-class relationship type in agent memory architectures (connecting to the ENGRAM substrate; Serra, 2026a), enabling personalized humor calibration through reinforcement.+}"
  },
  {
   "section": "1.4 Historical Context",
   "old": null,
   "new": "## 1.4 Historical Context",
   "marked": "{+## 1.4 Historical Context+}"
  },
  {
   "section": "1.4 Historical Context",
   "old": null,
   "new": "Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible frames of reference. Unlike ordinary association (connecting within a single frame), bisociation connects *across* frames — producing the cognitive surprise that underlies humor, scientific discovery, and artistic creation. Coulson (2001) provided psycholinguistic evidence for this frame-shifting mechanism through her analysis of \"semantic leaps\" in joke comprehension, showing that humor processing involves rapid re-mapping of conceptual spaces. Ritchie (2004) further systematized the linguistic analysis of joke structure, identifying formal patterns in how incongruity is set up and resolved — patterns that inform our taxonomy (Section 4). We argue that bisociation is precisely a geometric operation in embedding space: finding two concepts with high vector distance but connected by a coherent bridge concept.",
   "marked": "{+Arthur Koestler (1964) described **bisociation** as the simultaneous mental association of an idea with two habitually incompatible frames of reference. Unlike ordinary association (connecting within a single frame), bisociation connects *across* frames — producing the cognitive surprise that underlies humor, scientific discovery, and artistic creation. Coulson (2001) provided psycholinguistic evidence for this frame-shifting mechanism through her analysis of \"semantic leaps\" in joke comprehension, showing that humor processing involves rapid re-mapping of conceptual spaces. Ritchie (2004) further systematized the linguistic analysis of joke structure, identifying formal patterns in how incongruity is set up and resolved — patterns that inform our taxonomy (Section 4). We argue that bisociation is precisely a geometric operation in embedding space: finding two concepts with high vector distance but connected by a coherent bridge concept.+}"
  },
  {
   "section": "1.5 Paper Organization",
   "old": null,
   "new": "## 1.5 Paper Organization",
   "marked": "{+## 1.5 Paper Organization+}"
  },
  {
   "section": "1.5 Paper Organization",
   "old": null,
   "new": "Section 2 reviews related work in computational humor, humor theory, and embedding-space operations. Section 3 formalizes the humor potential function with formal definitions and properties. Section 4 presents the 12-pattern taxonomy. Section 5 addresses ethical constraints. Section 6 describes bridge discovery algorithms. Section 7 presents empirical methodology, pilot results, and the proposed full validation protocol with power analysis. Section 8 proposes humor associations as a memory type, connecting to the ENGRAM and CORTEX companion papers. Section 9 discusses limitations. Section 10 concludes.",
   "marked": "{+Section 2 reviews related work in computational humor, humor theory, and embedding-space operations. Section 3 formalizes the humor potential function with formal definitions and properties. Section 4 presents the 12-pattern taxonomy. Section 5 addresses ethical constraints. Section 6 describes bridge discovery algorithms. Section 7 presents empirical methodology, pilot results, and the proposed full validation protocol with power analysis. Section 8 proposes humor associations as a memory type, connecting to the ENGRAM and CORTEX companion papers. Section 9 discusses limitations. Section 10 concludes.+}"
  },
  {
   "section": "2. Related Work",
   "old": null,
   "new": "# 2. Related Work",
   "marked": "{+# 2. Related Work+}"
  },
  {
   "section": "2. Related Work",
   "old": null,
   "new": "Computational humor has been studied from linguistic, psychological, and computational perspectives. We review the most relevant work, positioning our framework relative to the dominant theories.",
   "marked": "{+Computational humor has been studied from linguistic, psychological, and computational perspectives. We review the most relevant work, positioning our framework relative to the dominant theories.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "## 2.1 Linguistic Humor Theories",
   "marked": "{+## 2.1 Linguistic Humor Theories+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Incongruity-Resolution.** Suls (1972) proposed that humor arises from perceiving an incongruity followed by its resolution — the listener encounters an unexpected element, then discovers a cognitive rule that resolves the incongruity. This two-stage model is critical to our framework: the multiplicative structure of $h$ (Section 3.2) directly operationalizes the requirement that *both* stages must succeed for humor to arise.",
   "marked": "{+**Incongruity-Resolution.** Suls (1972) proposed that humor arises from perceiving an incongruity followed by its resolution — the listener encounters an unexpected element, then discovers a cognitive rule that resolves the incongruity. This two-stage model is critical to our framework: the multiplicative structure of $h$ (Section 3.2) directly operationalizes the requirement that *both* stages must succeed for humor to arise.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Script-Based Semantic Theory and GTVH.** Raskin (1985) formalized humor as the overlap of two incompatible *scripts* (structured semantic representations of situations). Attardo and Raskin (1991) extended this into the General Theory of Verbal Humor (GTVH), identifying six Knowledge Resources (KRs) that characterize jokes: Script Opposition (SO), Logical Mechanism (LM), Situation (SI), Target (TA), Narrative Strategy (NS), and Language (LA). Our framework maps most directly to SO and LM: bisociation between distant embedding regions corresponds to script opposition, and the bridge concept provides the logical mechanism connecting them. Our contribution relative to GTVH is operational — we provide a *computable* function where GTVH provides a descriptive taxonomy.",
   "marked": "{+**Script-Based Semantic Theory and GTVH.** Raskin (1985) formalized humor as the overlap of two incompatible *scripts* (structured semantic representations of situations). Attardo and Raskin (1991) extended this into the General Theory of Verbal Humor (GTVH), identifying six Knowledge Resources (KRs) that characterize jokes: Script Opposition (SO), Logical Mechanism (LM), Situation (SI), Target (TA), Narrative Strategy (NS), and Language (LA). Our framework maps most directly to SO and LM: bisociation between distant embedding regions corresponds to script opposition, and the bridge concept provides the logical mechanism connecting them. Our contribution relative to GTVH is operational — we provide a *computable* function where GTVH provides a descriptive taxonomy.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Benign Violation Theory.** McGraw and Warren (2010) proposed that humor arises when a situation is simultaneously perceived as a violation (something wrong, threatening, or unexpected) and as benign (safe, acceptable, or playful). This maps naturally to our framework: the distance component $d(A, B)$ measures violation intensity, while bridge coherence measures the \"benign\" reinterpretation that makes the violation acceptable. The sensitivity gate (Section 5) operationalizes the boundary where violations cease to be benign.",
   "marked": "{+**Benign Violation Theory.** McGraw and Warren (2010) proposed that humor arises when a situation is simultaneously perceived as a violation (something wrong, threatening, or unexpected) and as benign (safe, acceptable, or playful). This maps naturally to our framework: the distance component $d(A, B)$ measures violation intensity, while bridge coherence measures the \"benign\" reinterpretation that makes the violation acceptable. The sensitivity gate (Section 5) operationalizes the boundary where violations cease to be benign.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Inside Jokes Theory.** Hurley, Dennett, and Adams (2011) argue that humor evolved as a reward signal for detecting committed belief errors — a \"just-in-time debugging\" mechanism for mental models. Their computational framing is directly relevant: if humor rewards the detection of expectation violations, then our surprise component $\\sigma(\\beta \\mid A, B)$ can be understood as quantifying the magnitude of the \"debugging reward\" — higher surprise indicates a more significant expectation violation that was nevertheless resolved coherently.",
   "marked": "{+**Inside Jokes Theory.** Hurley, Dennett, and Adams (2011) argue that humor evolved as a reward signal for detecting committed belief errors — a \"just-in-time debugging\" mechanism for mental models. Their computational framing is directly relevant: if humor rewards the detection of expectation violations, then our surprise component $\\sigma(\\beta \\mid A, B)$ can be understood as quantifying the magnitude of the \"debugging reward\" — higher surprise indicates a more significant expectation violation that was nevertheless resolved coherently.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Bisociation.** Koestler (1964) described bisociation as the creative act of connecting two habitually incompatible frames. Dubitzky et al. (2012) explored bisociation in data mining for knowledge discovery. Pereira et al. (2019) implemented bisociative concept blending for computational creativity, the work closest to ours, though they did not formalize the operation in embedding space or provide a computable scoring function.",
   "marked": "{+**Bisociation.** Koestler (1964) described bisociation as the creative act of connecting two habitually incompatible frames. Dubitzky et al. (2012) explored bisociation in data mining for knowledge discovery. Pereira et al. (2019) implemented bisociative concept blending for computational creativity, the work closest to ours, though they did not formalize the operation in embedding space or provide a computable scoring function.+}"
  },
  {
   "section": "2.1 Linguistic Humor Theories",
   "old": null,
   "new": "**Semantic Leaps.** Coulson (2001) provided psycholinguistic evidence that joke comprehension involves rapid \"semantic leaps\" — frame shifts that re-map conceptual structure. Her experimental work using ERPs (N400 component) showed that joke punchlines elicit different neural signatures than non-humorous incongruities, supporting the view that humor involves a specific *type* of frame shift, not merely any incongruity. Our bridge concept operationalizes Coulson's semantic leap as a vector in embedding space that connects two distant frames.",
   "marked": "{+**Semantic Leaps.** Coulson (2001) provided psycholinguistic evidence that joke comprehension involves rapid \"semantic leaps\" — frame shifts that re-map conceptual structure. Her experimental work using ERPs (N400 component) showed that joke punchlines elicit different neural signatures than non-humorous incongruities, supporting the view that humor involves a specific *type* of frame shift, not merely any incongruity. Our bridge concept operationalizes Coulson's semantic leap as a vector in embedding space that connects two distant frames.+}"
  },
  {
   "section": "2.2 Computational Humor Recognition",
   "old": null,
   "new": "## 2.2 Computational Humor Recognition",
   "marked": "{+## 2.2 Computational Humor Recognition+}"
  },
  {
   "section": "2.2 Computational Humor Recognition",
   "old": null,
   "new": "Humor recognition — classifying text as humorous or not — has received substantial attention. Yang et al. (2015) used Word2Vec features for humor recognition in Yelp reviews. Bertero and Fung (2016) applied CNNs and RNNs to humor in conversational data, achieving 0.69 F1 on Switchboard. Chen and Soo (2018) employed attention-based neural networks. Weller and Seppi (2019) applied transformer architectures, demonstrating that pre-trained language representations capture humor-relevant features. Hossain et al. (2019) introduced the SemEval shared task on humor detection, establishing benchmark datasets. Tian et al. (2022) provide a comprehensive survey of humor recognition methods, categorizing approaches by feature type and noting the persistent challenge of capturing the incongruity-resolution dynamic that our framework addresses directly. These approaches are *passive* — they classify existing humor rather than generate it. Our framework is *generative*: it produces novel humorous combinations from arbitrary concept pairs.",
   "marked": "{+Humor recognition — classifying text as humorous or not — has received substantial attention. Yang et al. (2015) used Word2Vec features for humor recognition in Yelp reviews. Bertero and Fung (2016) applied CNNs and RNNs to humor in conversational data, achieving 0.69 F1 on Switchboard. Chen and Soo (2018) employed attention-based neural networks. Weller and Seppi (2019) applied transformer architectures, demonstrating that pre-trained language representations capture humor-relevant features. Hossain et al. (2019) introduced the SemEval shared task on humor detection, establishing benchmark datasets. Tian et al. (2022) provide a comprehensive survey of humor recognition methods, categorizing approaches by feature type and noting the persistent challenge of capturing the incongruity-resolution dynamic that our framework addresses directly. These approaches are *passive* — they classify existing humor rather than generate it. Our framework is *generative*: it produces novel humorous combinations from arbitrary concept pairs.+}"
  },
  {
   "section": "2.3 Computational Humor Generation",
   "old": null,
   "new": "## 2.3 Computational Humor Generation",
   "marked": "{+## 2.3 Computational Humor Generation+}"
  },
  {
   "section": "2.3 Computational Humor Generation",
   "old": null,
   "new": "Template-based systems have generated specific humor subtypes: JAPE produced punning riddles (Binsted & Ritchie, 1994), HAHAcronym generated humorous acronyms (Stock & Strapparava, 2003). Petrović and Matthews (2013) demonstrated unsupervised joke generation using large corpora and simple statistical models, showing that humor generation need not require labeled data — a finding that supports our training-data-free approach. Yu et al. (2018) developed neural pun generation, and He et al. (2019) introduced surprise-based objectives for pun generation, directly connecting computational surprise to humor quality — a precursor to our surprise component in $h_{\\text{v2}}$. Luo et al. (2019) used GPT-2 fine-tuning for joke completion. More recently, Amin and Burghardt (2020) surveyed computational humor generation approaches, identifying the gap between template-based systems (narrow but controllable) and neural systems (broad but uncontrollable). Winters et al. (2021) examined machine learning approaches to humor, noting the difficulty of evaluating generated humor. Kao et al. (2016) developed a Bayesian model of verbal humor that formalizes the tension between ambiguity and distinctiveness in joke interpretation — their probabilistic framework complements our geometric one, with their \"distinctiveness\" mapping to our surprise and their \"ambiguity\" mapping to our bridge concept. West and Horvitz (2019) demonstrated computational approaches to reverse-engineering satire, showing that detecting incongruity between expected and actual framings is computationally tractable — supporting our use of embedding distance as an incongruity proxy. Our framework addresses the controllability gap: it is theory-grounded (providing controllability via explicit humor patterns), generalizable (covering multiple humor types), and does not require humor-specific training data.",
   "marked": "{+Template-based systems have generated specific humor subtypes: JAPE produced punning riddles (Binsted & Ritchie, 1994), HAHAcronym generated humorous acronyms (Stock & Strapparava, 2003). Petrović and Matthews (2013) demonstrated unsupervised joke generation using large corpora and simple statistical models, showing that humor generation need not require labeled data — a finding that supports our training-data-free approach. Yu et al. (2018) developed neural pun generation, and He et al. (2019) introduced surprise-based objectives for pun generation, directly connecting computational surprise to humor quality — a precursor to our surprise component in $h_{\\text{v2}}$. Luo et al. (2019) used GPT-2 fine-tuning for joke completion. More recently, Amin and Burghardt (2020) surveyed computational humor generation approaches, identifying the gap between template-based systems (narrow but controllable) and neural systems (broad but uncontrollable). Winters et al. (2021) examined machine learning approaches to humor, noting the difficulty of evaluating generated humor. Kao et al. (2016) developed a Bayesian model of verbal humor that formalizes the tension between ambiguity and distinctiveness in joke interpretation — their probabilistic framework complements our geometric one, with their \"distinctiveness\" mapping to our surprise and their \"ambiguity\" mapping to our bridge concept. West and Horvitz (2019) demonstrated computational approaches to reverse-engineering satire, showing that detecting incongruity between expected and actual framings is computationally tractable — supporting our use of embedding distance as an incongruity proxy. Our framework addresses the controllability gap: it is theory-grounded (providing controllability via explicit humor patterns), generalizable (covering multiple humor types), and does not require humor-specific training data.+}"
  },
  {
   "section": "2.4 Humor Psychology",
   "old": null,
   "new": "## 2.4 Humor Psychology",
   "marked": "{+## 2.4 Humor Psychology+}"
  },
  {
   "section": "2.4 Humor Psychology",
   "old": null,
   "new": "Martin (2007) provides the standard reference on the psychology of humor, synthesizing cognitive, social, and personality perspectives. Warren and McGraw (2016) extended Benign Violation Theory by systematically categorizing violation types and demonstrating that the perceived \"distance\" from benignity varies across moral, social, and physical domains — a finding that supports the view that our distance sweet spot (Section 3.6) may need domain-specific calibration. His taxonomy of humor styles (affiliative, self-enhancing, aggressive, self-defeating) informs our audience modeling — different humor styles correspond to different regions of the humor potential landscape, and the sensitivity gate (Section 5) must be calibrated to the intended style. Dynel (2009) analyzed conversational humor mechanisms, identifying patterns that map onto our taxonomy — particularly the role of pragmatic implicature in humor, which our \"expectation subversion\" pattern (Pattern 4) operationalizes. Oring (2003) examined the structure of humor through the lens of \"appropriate incongruity,\" a concept closely aligned with our validity-weighted surprise formulation.",
   "marked": "{+Martin (2007) provides the standard reference on the psychology of humor, synthesizing cognitive, social, and personality perspectives. Warren and McGraw (2016) extended Benign Violation Theory by systematically categorizing violation types and demonstrating that the perceived \"distance\" from benignity varies across moral, social, and physical domains — a finding that supports the view that our distance sweet spot (Section 3.6) may need domain-specific calibration. His taxonomy of humor styles (affiliative, self-enhancing, aggressive, self-defeating) informs our audience modeling — different humor styles correspond to different regions of the humor potential landscape, and the sensitivity gate (Section 5) must be calibrated to the intended style. Dynel (2009) analyzed conversational humor mechanisms, identifying patterns that map onto our taxonomy — particularly the role of pragmatic implicature in humor, which our \"expectation subversion\" pattern (Pattern 4) operationalizes. Oring (2003) examined the structure of humor through the lens of \"appropriate incongruity,\" a concept closely aligned with our validity-weighted surprise formulation.+}"
  },
  {
   "section": "2.5 Embedding Space Arithmetic and Creativity",
   "old": null,
   "new": "## 2.5 Embedding Space Arithmetic and Creativity",
   "marked": "{+## 2.5 Embedding Space Arithmetic and Creativity+}"
  },
  {
   "section": "2.5 Embedding Space Arithmetic and Creativity",
   "old": null,
   "new": "Mikolov et al. (2013) demonstrated that word embeddings support analogical reasoning via vector arithmetic: $\\vec{king} - \\vec{man} + \\vec{woman} \\approx \\vec{queen}$. This finding established that semantic relationships have geometric structure in embedding spaces. Our bridge discovery mechanism (Section 6.1) extends this principle: if analogy maps known relationships, then $\\vec{A} - \\vec{context_A} + \\vec{context_B}$ maps the *creative leap* across semantic frames that humor requires. Veale (2016) explored computational creativity through conceptual blending and metaphor in similar geometric terms, though without a humor-specific scoring function. Bowdle and Gentner (2005) showed that metaphor comprehension involves alignment and projection between conceptual domains — a process closely related to our bridge discovery algorithms. Glucksberg (2001) demonstrated that figurative language comprehension involves class-inclusion assertions, suggesting that humor bridges function as implicit category memberships that violate conventional taxonomies.",
   "marked": "{+Mikolov et al. (2013) demonstrated that word embeddings support analogical reasoning via vector arithmetic: $\\vec{king} - \\vec{man} + \\vec{woman} \\approx \\vec{queen}$. This finding established that semantic relationships have geometric structure in embedding spaces. Our bridge discovery mechanism (Section 6.1) extends this principle: if analogy maps known relationships, then $\\vec{A} - \\vec{context_A} + \\vec{context_B}$ maps the *creative leap* across semantic frames that humor requires. Veale (2016) explored computational creativity through conceptual blending and metaphor in similar geometric terms, though without a humor-specific scoring function. Bowdle and Gentner (2005) showed that metaphor comprehension involves alignment and projection between conceptual domains — a process closely related to our bridge discovery algorithms. Glucksberg (2001) demonstrated that figurative language comprehension involves class-inclusion assertions, suggesting that humor bridges function as implicit category memberships that violate conventional taxonomies.+}"
  },
  {
   "section": "2.6 Positioning of Our Contribution",
   "old": null,
   "new": "## 2.6 Positioning of Our Contribution",
   "marked": "{+## 2.6 Positioning of Our Contribution+}"
  },
  {
   "section": "2.6 Positioning of Our Contribution",
   "old": null,
   "new": "Table 1 summarizes how our framework relates to prior approaches.",
   "marked": "{+Table 1 summarizes how our framework relates to prior approaches.+}"
  },
  {
   "section": "2.6 Positioning of Our Contribution",
   "old": null,
   "new": "| Approach | Type | Scope | Training Required | Humor Theory | Bridge Concept | |----------|------|-------|-------------------|--------------|----------------| | JAPE (Binsted & Ritchie, 1994) | Generative | Puns only | No (rules) | Phonological | N/A | | HAHAcronym (Stock & Strapparava, 2003) | Generative | Acronyms | No (rules) | Lexical | N/A | | Petrović & Matthews (2013) | Generative | One-liners | No (unsupervised) | Statistical | Implicit | | Bertero & Fung (2016) | Recognition | Dialogue | Yes (CNN/RNN) | Learned | N/A | | Kao et al. (2016) | Model | Puns | No (Bayesian) | Ambiguity | Implicit | | Yu et al. (2018) | Generative | Puns | Yes (neural) | Homophony | N/A | | He et al. (2019) | Generative | Puns | Yes (neural) | Surprise | Implicit | | Luo et al. (2019) | Generative | Jokes | Yes (GPT-2) | Learned | N/A | | Weller & Seppi (2019) | Recognition | General | Yes (transformer) | Learned | N/A | | LLM prompting (2023+) | Generative | Broad | No (prompt) | Implicit | N/A | | **LIMBIC (this work)** | **Framework** | **12 types** | **No** | **Bisociation** | **Explicit** |",
   "marked": "{+| Approach | Type | Scope | Training Required | Humor Theory | Bridge Concept | |----------|------|-------|-------------------|--------------|----------------| | JAPE (Binsted & Ritchie, 1994) | Generative | Puns only | No (rules) | Phonological | N/A | | HAHAcronym (Stock & Strapparava, 2003) | Generative | Acronyms | No (rules) | Lexical | N/A | | Petrović & Matthews (2013) | Generative | One-liners | No (unsupervised) | Statistical | Implicit | | Bertero & Fung (2016) | Recognition | Dialogue | Yes (CNN/RNN) | Learned | N/A | | Kao et al. (2016) | Model | Puns | No (Bayesian) | Ambiguity | Implicit | | Yu et al. (2018) | Generative | Puns | Yes (neural) | Homophony | N/A | | He et al. (2019) | Generative | Puns | Yes (neural) | Surprise | Implicit | | Luo et al. (2019) | Generative | Jokes | Yes (GPT-2) | Learned | N/A | | Weller & Seppi (2019) | Recognition | General | Yes (transformer) | Learned | N/A | | LLM prompting (2023+) | Generative | Broad | No (prompt) | Implicit | N/A | | **LIMBIC (this work)** | **Framework** | **12 types** | **No** | **Bisociation** | **Explicit** |+}"
  },
  {
   "section": "2.6 Positioning of Our Contribution",
   "old": null,
   "new": "*Table 1: Comparison with existing computational humor approaches. LIMBIC is unique in providing an explicit, computable scoring function grounded in bisociation theory with an explicit bridge concept, covering multiple humor types without requiring humor-specific training.*",
   "marked": "{+*Table 1: Comparison with existing computational humor approaches. LIMBIC is unique in providing an explicit, computable scoring function grounded in bisociation theory with an explicit bridge concept, covering multiple humor types without requiring humor-specific training.*+}"
  },
  {
   "section": "2.6 Positioning of Our Contribution",
   "old": null,
   "new": "Our key differentiators: (1) an explicit, computable scoring function rather than learned representations; (2) coverage of 12 distinct humor types organized by meta-category; (3) the bridge concept as a first-class element enabling both generation and *explanation* of why a joke works; and (4) the memory-humor correspondence enabling integration with agent memory architectures (ENGRAM; Serra, 2026a).",
   "marked": "{+Our key differentiators: (1) an explicit, computable scoring function rather than learned representations; (2) coverage of 12 distinct humor types organized by meta-category; (3) the bridge concept as a first-class element enabling both generation and *explanation* of why a joke works; and (4) the memory-humor correspondence enabling integration with agent memory architectures (ENGRAM; Serra, 2026a).+}"
  },
  {
   "section": "3. The Humor Potential Function",
   "old": null,
   "new": "# 3. The Humor Potential Function",
   "marked": "{+# 3. The Humor Potential Function+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "## 3.1 Core Formulation",
   "marked": "{+## 3.1 Core Formulation+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "We define the **humor potential** of a concept pair $(A, B)$ connected by a bridge $\\beta$ as:",
   "marked": "{+We define the **humor potential** of a concept pair $(A, B)$ connected by a bridge $\\beta$ as:+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "$$h(A, B, \\beta) = d(A, B) \\cdot c(\\beta, A) \\cdot c(\\beta, B)$$",
   "marked": "{+$$h(A, B, \\beta) = d(A, B) \\cdot c(\\beta, A) \\cdot c(\\beta, B)$$+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "where:",
   "marked": "{+where:+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "- $A, B \\in \\mathbb{R}^n$ are embedding vectors for two concepts, - $\\beta \\in \\mathbb{R}^n$ is the embedding vector for a bridge concept, - $d(A, B) = 1 - \\cos(A, B)$ is the cosine distance (range $[0, 2]$), - $c(x, y) = 1 - d(x, y) = \\cos(x, y)$ is cosine coherence (range $[-1, 1]$, typically $[0, 1]$ for meaningful concepts).",
   "marked": "{+- $A, B \\in \\mathbb{R}^n$ are embedding vectors for two concepts, - $\\beta \\in \\mathbb{R}^n$ is the embedding vector for a bridge concept, - $d(A, B) = 1 - \\cos(A, B)$ is the cosine distance (range $[0, 2]$), - $c(x, y) = 1 - d(x, y) = \\cos(x, y)$ is cosine coherence (range $[-1, 1]$, typically $[0, 1]$ for meaningful concepts).+}"
  },
  {
   "section": "3.1 Core Formulation",
   "old": null,
   "new": "**Interpretation.** Humor potential increases with (a) semantic distance between concepts (incongruity/violation) and (b) coherence of the bridge to both concepts (resolution/benign reinterpretation). This directly operationalizes the incongruity-resolution and benign violation theories: distance measures incongruity/violation, bridge coherence measures resolution/benign interpretation.",
   "marked": "{+**Interpretation.** Humor potential increases with (a) semantic distance between concepts (incongruity/violation) and (b) coherence of the bridge to both concepts (resolution/benign reinterpretation). This directly operationalizes the incongruity-resolution and benign violation theories: distance measures incongruity/violation, bridge coherence measures resolution/benign interpretation.+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "## 3.2 Justification of the Multiplicative Form",
   "marked": "{+## 3.2 Justification of the Multiplicative Form+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "The multiplicative structure $h = d \\cdot c \\cdot c$ is not arbitrary — it operationalizes a theoretical requirement.",
   "marked": "{+The multiplicative structure $h = d \\cdot c \\cdot c$ is not arbitrary — it operationalizes a theoretical requirement.+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "Suls' (1972) two-stage model posits that humor requires *both* incongruity (Stage 1) *and* resolution (Stage 2). If either stage fails, humor does not arise: pure incongruity without resolution produces confusion; resolution without incongruity produces boredom. This conjunction is naturally expressed as multiplication:",
   "marked": "{+Suls' (1972) two-stage model posits that humor requires *both* incongruity (Stage 1) *and* resolution (Stage 2). If either stage fails, humor does not arise: pure incongruity without resolution produces confusion; resolution without incongruity produces boredom. This conjunction is naturally expressed as multiplication:+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "- If $d(A, B) \\approx 0$ (no incongruity): $h \\approx 0$ regardless of bridge quality. - If $c(\\beta, A) \\approx 0$ or $c(\\beta, B) \\approx 0$ (no resolution): $h \\approx 0$ regardless of distance.",
   "marked": "{+- If $d(A, B) \\approx 0$ (no incongruity): $h \\approx 0$ regardless of bridge quality. - If $c(\\beta, A) \\approx 0$ or $c(\\beta, B) \\approx 0$ (no resolution): $h \\approx 0$ regardless of distance.+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "The multiplication encodes the logical AND of Suls' two stages. McGraw and Warren's (2010) Benign Violation Theory imposes the same conjunction: a situation must be *both* a violation *and* benign. Violation without benignity produces offense; benignity without violation produces indifference.",
   "marked": "{+The multiplication encodes the logical AND of Suls' two stages. McGraw and Warren's (2010) Benign Violation Theory imposes the same conjunction: a situation must be *both* a violation *and* benign. Violation without benignity produces offense; benignity without violation produces indifference.+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "**Alternative functional forms** should be explored empirically:",
   "marked": "{+**Alternative functional forms** should be explored empirically:+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "- **Additive**: $h_{\\text{add}} = w_1 d + w_2 c(\\beta, A) + w_3 c(\\beta, B)$ — permits humor from strong incongruity alone. - **Geometric mean**: $h_{\\text{geo}} = (d \\cdot c(\\beta, A) \\cdot c(\\beta, B))^{1/3}$ — reduces the dominance of any single factor. - **Learned combination**: $h_{\\text{learn}} = f_\\theta(d, c(\\beta, A), c(\\beta, B))$ — data-driven but loses interpretability.",
   "marked": "{+- **Additive**: $h_{\\text{add}} = w_1 d + w_2 c(\\beta, A) + w_3 c(\\beta, B)$ — permits humor from strong incongruity alone. - **Geometric mean**: $h_{\\text{geo}} = (d \\cdot c(\\beta, A) \\cdot c(\\beta, B))^{1/3}$ — reduces the dominance of any single factor. - **Learned combination**: $h_{\\text{learn}} = f_\\theta(d, c(\\beta, A), c(\\beta, B))$ — data-driven but loses interpretability.+}"
  },
  {
   "section": "3.2 Justification of the Multiplicative Form",
   "old": null,
   "new": "We adopt the multiplicative form as the theoretically motivated default. Ablation across alternative forms is included in our proposed validation protocol (Section 7.2).",
   "marked": "{+We adopt the multiplicative form as the theoretically motivated default. Ablation across alternative forms is included in our proposed validation protocol (Section 7.2).+}"
  },
  {
   "section": "3.3 Formal Properties",
   "old": null,
   "new": "## 3.3 Formal Properties",
   "marked": "{+## 3.3 Formal Properties+}"
  },
  {
   "section": "3.3 Formal Properties",
   "old": null,
   "new": "**Proposition 2 (Properties of $h$).** The humor potential function $h: \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n \\to \\mathbb{R}$ has the following properties:",
   "marked": "{+**Proposition 2 (Properties of $h$).** The humor potential function $h: \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n \\to \\mathbb{R}$ has the following properties:+}"
  },
  {
   "section": "3.3 Formal Properties",
   "old": null,
   "new": "1. **Boundedness.** For unit-normalized embeddings ($\\|A\\| = \\|B\\| = \\|\\beta\\| = 1$), $h(A, B, \\beta) \\in [0, 2]$, since $d \\in [0, 2]$ and $c \\in [-1, 1]$. 2. **Symmetry.** $h(A, B, \\beta) = h(B, A, \\beta)$ — humor potential is symmetric in the concept pair. 3. **Bridge dependence.** $h$ is not symmetric in $\\beta$: the same concept pair $(A, B)$ has different humor potentials under different bridges. 4. **Zero conditions.** $h = 0$ if $A = B$ (no incongruity), or if $\\beta \\perp A$ or $\\beta \\perp B$ (no resolution). 5. **Continuity.** $h$ is continuous in all arguments (as a product of continuous functions).",
   "marked": "{+1. **Boundedness.** For unit-normalized embeddings ($\\|A\\| = \\|B\\| = \\|\\beta\\| = 1$), $h(A, B, \\beta) \\in [0, 2]$, since $d \\in [0, 2]$ and $c \\in [-1, 1]$. 2. **Symmetry.** $h(A, B, \\beta) = h(B, A, \\beta)$ — humor potential is symmetric in the concept pair. 3. **Bridge dependence.** $h$ is not symmetric in $\\beta$: the same concept pair $(A, B)$ has different humor potentials under different bridges. 4. **Zero conditions.** $h = 0$ if $A = B$ (no incongruity), or if $\\beta \\perp A$ or $\\beta \\perp B$ (no resolution). 5. **Continuity.** $h$ is continuous in all arguments (as a product of continuous functions).+}"
  },
  {
   "section": "3.3 Formal Properties",
   "old": null,
   "new": "*Proof.* Properties 1–5 follow directly from the definitions of cosine distance and coherence and the algebraic properties of the product. $\\square$",
   "marked": "{+*Proof.* Properties 1–5 follow directly from the definitions of cosine distance and coherence and the algebraic properties of the product. $\\square$+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "## 3.4 Extended Formulation with Audience and Timing",
   "marked": "{+## 3.4 Extended Formulation with Audience and Timing+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "The core formula omits contextual factors critical to humor in practice. We extend it:",
   "marked": "{+The core formula omits contextual factors critical to humor in practice. We extend it:+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "$$h_{\\text{ext}}(A, B, \\beta, \\alpha, t) = d(A, B) \\cdot c(\\beta, A) \\cdot c(\\beta, B) \\cdot f(\\alpha, A) \\cdot f(\\alpha, B) \\cdot (1 + \\gamma(t))$$",
   "marked": "{+$$h_{\\text{ext}}(A, B, \\beta, \\alpha, t) = d(A, B) \\cdot c(\\beta, A) \\cdot c(\\beta, B) \\cdot f(\\alpha, A) \\cdot f(\\alpha, B) \\cdot (1 + \\gamma(t))$$+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "where:",
   "marked": "{+where:+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "- $f(\\alpha, X) \\in [0, 1]$ is audience $\\alpha$'s familiarity with concept $X$. We operationalize this as the probability that audience $\\alpha$ can correctly identify concept $X$ from its description, with optimal range $[0.6, 0.95]$ varying by audience expertise. - $\\gamma(t)$ is the callback bonus as a function of elapsed time $t$.",
   "marked": "{+- $f(\\alpha, X) \\in [0, 1]$ is audience $\\alpha$'s familiarity with concept $X$. We operationalize this as the probability that audience $\\alpha$ can correctly identify concept $X$ from its description, with optimal range $[0.6, 0.95]$ varying by audience expertise. - $\\gamma(t)$ is the callback bonus as a function of elapsed time $t$.+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "The familiarity function reflects the observation that jokes require shared knowledge: a quantum physics joke scores high familiarity for physicists but low for a general audience. The optimal range is not universal — domain experts tolerate higher conceptual distances because their familiarity provides scaffolding for comprehension.",
   "marked": "{+The familiarity function reflects the observation that jokes require shared knowledge: a quantum physics joke scores high familiarity for physicists but low for a general audience. The optimal range is not universal — domain experts tolerate higher conceptual distances because their familiarity provides scaffolding for comprehension.+}"
  },
  {
   "section": "3.4 Extended Formulation with Audience and Timing",
   "old": null,
   "new": "**Operationalizing familiarity.** In a deployed agent, $f(\\alpha, X)$ can be estimated from (a) the user's demonstrated vocabulary (concepts they have used in conversation), (b) professional domain indicators, and (c) explicit preference signals. This constitutes a cold-start problem for new users; the default strategy is to assume moderate familiarity ($f = 0.7$) and calibrate via feedback (Section 8.5).",
   "marked": "{+**Operationalizing familiarity.** In a deployed agent, $f(\\alpha, X)$ can be estimated from (a) the user's demonstrated vocabulary (concepts they have used in conversation), (b) professional domain indicators, and (c) explicit preference signals. This constitutes a cold-start problem for new users; the default strategy is to assume moderate familiarity ($f = 0.7$) and calibrate via feedback (Section 8.5).+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "## 3.5 Callback Bonus with Temporal Decay",
   "marked": "{+## 3.5 Callback Bonus with Temporal Decay+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "Callbacks — humorous references to earlier events — exhibit a non-monotonic temporal profile. We model the callback bonus as:",
   "marked": "{+Callbacks — humorous references to earlier events — exhibit a non-monotonic temporal profile. We model the callback bonus as:+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "$$\\gamma(t) = b(t) \\cdot \\delta(t)$$",
   "marked": "{+$$\\gamma(t) = b(t) \\cdot \\delta(t)$$+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "where $b(t) = \\min(\\log(1 + t) / 10, 1.0)$ is a logarithmic growth term and $\\delta(t)$ is a decay term:",
   "marked": "{+where $b(t) = \\min(\\log(1 + t) / 10, 1.0)$ is a logarithmic growth term and $\\delta(t)$ is a decay term:+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "$$\\delta(t) = \\begin{cases} 1.0 & \\text{if } t \\leq t_d \\\\ 1.0 - 0.9 \\cdot \\frac{t - t_d}{t_f - t_d} & \\text{if } t_d < t < t_f \\\\ 0.1 & \\text{if } t \\geq t_f \\end{cases}$$",
   "marked": "{+$$\\delta(t) = \\begin{cases} 1.0 & \\text{if } t \\leq t_d \\\\ 1.0 - 0.9 \\cdot \\frac{t - t_d}{t_f - t_d} & \\text{if } t_d < t < t_f \\\\ 0.1 & \\text{if } t \\geq t_f \\end{cases}$$+}"
  },
  {
   "section": "3.5 Callback Bonus with Temporal Decay",
   "old": null,
   "new": "with $t_d = 2160$ hours (3 months, decay onset) and $t_f = 8760$ hours (1 year, floor). These parameters are heuristic estimates informed by the general principle — discussed by Martin (2007, ch. 5) — that humor in social contexts exhibits non-monotonic temporal dynamics, but the specific hour values are our engineering defaults, not empirically measured constants. They should be treated as configurable defaults requiring empirical calibration. The floor of 0.1 reflects the observation that \"legendary callbacks\" — references to events long past — retain residual humor when they land, though they become increasingly risky as audience memory fades.",
   "marked": "{+with $t_d = 2160$ hours (3 months, decay onset) and $t_f = 8760$ hours (1 year, floor). These parameters are heuristic estimates informed by the general principle — discussed by Martin (2007, ch. 5) — that humor in social contexts exhibits non-monotonic temporal dynamics, but the specific hour values are our engineering defaults, not empirically measured constants. They should be treated as configurable defaults requiring empirical calibration. The floor of 0.1 reflects the observation that \"legendary callbacks\" — references to events long past — retain residual humor when they land, though they become increasingly risky as audience memory fades.+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "## 3.6 The Distance Sweet Spot",
   "marked": "{+## 3.6 The Distance Sweet Spot+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "We hypothesize an optimal distance range for humor:",
   "marked": "{+We hypothesize an optimal distance range for humor:+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "$$d(A, B) \\in [\\delta_{\\min}, \\delta_{\\max}] = [0.6, 0.95]$$",
   "marked": "{+$$d(A, B) \\in [\\delta_{\\min}, \\delta_{\\max}] = [0.6, 0.95]$$+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "**Lower bound justification.** In high-dimensional embedding spaces ($n \\geq 384$), cosine distances between unrelated concepts cluster around $0.5$–$0.7$ due to the concentration of measure phenomenon (Aggarwal et al., 2001; Vershynin, 2018). A threshold of $0.6$ ensures genuine semantic separation rather than incidental positioning.",
   "marked": "{+**Lower bound justification.** In high-dimensional embedding spaces ($n \\geq 384$), cosine distances between unrelated concepts cluster around $0.5$–$0.7$ due to the concentration of measure phenomenon (Aggarwal et al., 2001; Vershynin, 2018). A threshold of $0.6$ ensures genuine semantic separation rather than incidental positioning.+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "**Upper bound justification.** At cosine distances approaching $1.0$, concepts occupy nearly orthogonal regions, making coherent bridges increasingly improbable. Our pilot study (Section 7.1) confirms that random pairings with $d > 0.9$ produce bridges with mean coherence below $0.2$, yielding negligible humor potential.",
   "marked": "{+**Upper bound justification.** At cosine distances approaching $1.0$, concepts occupy nearly orthogonal regions, making coherent bridges increasingly improbable. Our pilot study (Section 7.1) confirms that random pairings with $d > 0.9$ produce bridges with mean coherence below $0.2$, yielding negligible humor potential.+}"
  },
  {
   "section": "3.6 The Distance Sweet Spot",
   "old": null,
   "new": "**This range is not universal.** Audience expertise shifts the effective sweet spot. Domain experts find humor at higher distances because their knowledge provides scaffolding for comprehension — a physicist finds a quark joke funny at $d = 0.85$ where a layperson finds it incomprehensible.",
   "marked": "{+**This range is not universal.** Audience expertise shifts the effective sweet spot. Domain experts find humor at higher distances because their knowledge provides scaffolding for comprehension — a physicist finds a quark joke funny at $d = 0.85$ where a layperson finds it incomprehensible.+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "## 3.7 The Humor Zone",
   "marked": "{+## 3.7 The Humor Zone+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "**Definition 2 (Humor Zone).** The *humor zone* $\\mathcal{H} \\subset \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n$ is the set of concept-bridge triplets with non-trivial humor potential:",
   "marked": "{+**Definition 2 (Humor Zone).** The *humor zone* $\\mathcal{H} \\subset \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n$ is the set of concept-bridge triplets with non-trivial humor potential:+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "$$\\mathcal{H} = \\{(A, B, \\beta) \\in \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n \\mid d(A, B) \\in [\\delta_{\\min}, \\delta_{\\max}] \\wedge v(\\beta, A, B) \\geq \\tau_v \\wedge \\sigma(\\beta \\mid A, B) \\geq \\tau_\\sigma\\}$$",
   "marked": "{+$$\\mathcal{H} = \\{(A, B, \\beta) \\in \\mathbb{R}^n \\times \\mathbb{R}^n \\times \\mathbb{R}^n \\mid d(A, B) \\in [\\delta_{\\min}, \\delta_{\\max}] \\wedge v(\\beta, A, B) \\geq \\tau_v \\wedge \\sigma(\\beta \\mid A, B) \\geq \\tau_\\sigma\\}$$+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "where $v$ is bridge validity and $\\sigma$ is bridge surprise (both formally defined in Definition 3, Section 6.1), and $\\tau_v, \\tau_\\sigma$ are minimum thresholds. We recommend $\\tau_v \\geq 0.15$ (the bridge must have at least weak validity to both concepts) and $\\tau_\\sigma \\geq 0.3$ (the bridge must be at least moderately surprising); these are starting-point defaults informed by the pilot worked example (Section 7.1.2), where the funny triplet achieved $v = 0.21$ and $\\sigma = 1.0$ while the unfunny triplet had $\\sigma = 0.03$. Both thresholds require empirical calibration against human ratings. The humor zone is the intersection of three constraints: sufficient distance, sufficient bridge validity, and sufficient bridge surprise.",
   "marked": "{+where $v$ is bridge validity and $\\sigma$ is bridge surprise (both formally defined in Definition 3, Section 6.1), and $\\tau_v, \\tau_\\sigma$ are minimum thresholds. We recommend $\\tau_v \\geq 0.15$ (the bridge must have at least weak validity to both concepts) and $\\tau_\\sigma \\geq 0.3$ (the bridge must be at least moderately surprising); these are starting-point defaults informed by the pilot worked example (Section 7.1.2), where the funny triplet achieved $v = 0.21$ and $\\sigma = 1.0$ while the unfunny triplet had $\\sigma = 0.03$. Both thresholds require empirical calibration against human ratings. The humor zone is the intersection of three constraints: sufficient distance, sufficient bridge validity, and sufficient bridge surprise.+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "**Geometric interpretation.** The humor zone identifies a specific region of the product space: concept pairs that are distant enough to produce surprise but close enough (via bridge) to permit resolution, connected by bridges that are both valid and unexpected. Figure 1 illustrates this geometry.",
   "marked": "{+**Geometric interpretation.** The humor zone identifies a specific region of the product space: concept pairs that are distant enough to produce surprise but close enough (via bridge) to permit resolution, connected by bridges that are both valid and unexpected. Figure 1 illustrates this geometry.+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": "○ \"meeting\" ○ \"hostage situation\" · · · · · · · · · · · · · ○ Bridge: · · · \"held against your · · will\" · · · · · · · · · · · ·",
   "new": "o \"meeting\" o \"hostage situation\" . . . . . . . . . . . . . o bridge: . . . \"held against . . your will\" . . . . . . . . . . . .",
   "marked": "[-○-] {+o+} \"meeting\" [-○-] {+o+} \"hostage situation\" [-· · · · · · · · · · · · · ○ Bridge: · · ·-] {+. . . . . . . . . . . . . o bridge: . . .+} \"held against {+. .+} your [-· ·-] will\" [-· · · · · · · · · · · ·-] {+. . . . . . . . . . . .+}"
  },
  {
   "section": "2.4 Visual: Humor in Embedding Space",
   "old": "|←——— distance(A,B) = 0.75 ————→| coherence(bridge,A) = 0.21 coherence(bridge,B) = 0.27 RESULT: Funny — distant concepts, unexpected bridge",
   "new": null,
   "marked": "[-|←——— distance(A,B) = 0.75 ————→| coherence(bridge,A) = 0.21 coherence(bridge,B) = 0.27 RESULT: Funny — distant concepts, unexpected bridge-]"
  },
  {
   "section": "2.4 Visual: Humor in Embedding Space",
   "old": "─────────────────────────────────────────────────",
   "new": null,
   "marked": "[-─────────────────────────────────────────────────-]"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "|<--- distance(A,B) = 0.75 --->| c(bridge,A) = 0.21 c(bridge,B) = 0.27 h_v1 = 0.75 * 0.21 * 0.27 = 0.043 In h_v2: surprise is HIGH (bridge is unexpected) => humor potential is significant",
   "marked": "{+|<--- distance(A,B) = 0.75 --->| c(bridge,A) = 0.21 c(bridge,B) = 0.27 h_v1 = 0.75 * 0.21 * 0.27 = 0.043 In h_v2: surprise is HIGH (bridge is unexpected) => humor potential is significant+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "---------------------------------------------------",
   "marked": "{+---------------------------------------------------+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": "○ \"cat\" ○ \"kitten\" · ○ Bridge: \"small feline\" · · · · · · · · · · · · · ·",
   "new": "o \"cat\" o \"kitten\" . o bridge: \"small feline\" . . . . . . . . . . . . . .",
   "marked": "[-○-] {+o+} \"cat\" [-○-] {+o+} \"kitten\" [-· ○ Bridge:-] {+. o bridge:+} \"small feline\" [-· · · · · · · · · · · · · ·-] {+. . . . . . . . . . . . . .+}"
  },
  {
   "section": "2.4 Visual: Humor in Embedding Space",
   "old": "|← d=0.21 →| coherence(bridge,A) = 0.56 coherence(bridge,B) = 0.58 RESULT: Not funny — too close, bridge is obvious ```",
   "new": null,
   "marked": "[-|← d=0.21 →| coherence(bridge,A) = 0.56 coherence(bridge,B) = 0.58 RESULT: Not funny — too close, bridge is obvious ```-]"
  },
  {
   "section": "2.5 The Sweet Spot",
   "old": "### 2.5 The Sweet Spot",
   "new": null,
   "marked": "[-### 2.5 The Sweet Spot-]"
  },
  {
   "section": "2.5 The Sweet Spot",
   "old": "``` Optimal humor zone: distance(A, B) ∈ [0.6, 0.95] ```",
   "new": null,
   "marked": "[-``` Optimal humor zone: distance(A, B) ∈ [0.6, 0.95] ```-]"
  },
  {
   "section": "2.5 The Sweet Spot",
   "old": "- **< 0.6** → Too similar, not surprising (\"a meeting is like a gathering\" — boring) - **0.6–0.95** → Surprising but connectable (the comedy zone) - **> 0.95** → Too random, no coherence (\"a meeting is like a quasar\" — confusing)",
   "new": null,
   "marked": "[-- **< 0.6** → Too similar, not surprising (\"a meeting is like a gathering\" — boring) - **0.6–0.95** → Surprising but connectable (the comedy zone) - **> 0.95** → Too random, no coherence (\"a meeting is like a quasar\" — confusing)-]"
  },
  {
   "section": "2.6 Mathematical Justification for the Sweet Spot",
   "old": "### 2.6 Mathematical Justification for the Sweet Spot",
   "new": null,
   "marked": "[-### 2.6 Mathematical Justification for the Sweet Spot-]"
  },
  {
   "section": "2.6 Mathematical Justification for the Sweet Spot",
   "old": "The range [0.6, 0.95] is an empirically-motivated heuristic, not a derived constant. We justify it geometrically:",
   "new": null,
   "marked": "[-The range [0.6, 0.95] is an empirically-motivated heuristic, not a derived constant. We justify it geometrically:-]"
  },
  {
   "section": "2.6 Mathematical Justification for the Sweet Spot",
   "old": "**Lower bound (0.6).** In high-dimensional embedding spaces (d ≥ 384), cosine distances between unrelated concepts cluster around 0.5–0.7 due to the concentration of measure phenomenon (Aggarwal et al., 2001). A threshold of 0.6 ensures concepts are at least as distant as the typical random baseline, guaranteeing genuine semantic separation rather than incidental positioning.",
   "new": null,
   "marked": "[-**Lower bound (0.6).** In high-dimensional embedding spaces (d ≥ 384), cosine distances between unrelated concepts cluster around 0.5–0.7 due to the concentration of measure phenomenon (Aggarwal et al., 2001). A threshold of 0.6 ensures concepts are at least as distant as the typical random baseline, guaranteeing genuine semantic separation rather than incidental positioning.-]"
  },
  {
   "section": "2.6 Mathematical Justification for the Sweet Spot",
   "old": "**Upper bound (0.95).** At cosine distance approaching 1.0, concepts occupy nearly orthogonal regions of the embedding space, making any coherent bridge increasingly improbable. Our pilot study (§8.0) confirms that random pairings with distances > 0.9 produce bridges with very low coherence (mean coherence < 0.2), yielding low humor potential regardless of formula variant.",
   "new": null,
   "marked": "[-**Upper bound (0.95).** At cosine distance approaching 1.0, concepts occupy nearly orthogonal regions of the embedding space, making any coherent bridge increasingly improbable. Our pilot study (§8.0) confirms that random pairings with distances > 0.9 produce bridges with very low coherence (mean coherence < 0.2), yielding low humor potential regardless of formula variant.-]"
  },
  {
   "section": "2.6 Mathematical Justification for the Sweet Spot",
   "old": "**The range is not universal.** As noted in §2.2, audience familiarity shifts the effective sweet spot. For domain experts, higher distances remain connectable (a physicist finds quark jokes funny at d=0.85 where a layperson finds them confusing). The [0.6, 0.95] range should be understood as a default for general-audience, general-knowledge humor.",
   "new": null,
   "marked": "[-**The range is not universal.** As noted in §2.2, audience familiarity shifts the effective sweet spot. For domain experts, higher distances remain connectable (a physicist finds quark jokes funny at d=0.85 where a layperson finds them confusing). The [0.6, 0.95] range should be understood as a default for general-audience, general-knowledge humor.-]"
  },
  {
   "section": "2.5 Why This Works",
   "old": "### 2.5 Why This Works",
   "new": null,
   "marked": "[-### 2.5 Why This Works-]"
  },
  {
   "section": "2.5 Why This Works",
   "old": "Traditional similarity search (memory retrieval): ```sql SELECT * FROM vec WHERE embedding MATCH ? ORDER BY distance ASC LIMIT 10; ```",
   "new": null,
   "marked": "[-Traditional similarity search (memory retrieval): ```sql SELECT * FROM vec WHERE embedding MATCH ? ORDER BY distance ASC LIMIT 10; ```-]"
  },
  {
   "section": "2.5 Why This Works",
   "old": "Humor search (bisociation retrieval): ```sql SELECT * FROM vec WHERE embedding MATCH ? AND distance BETWEEN 0.6 AND 0.95 ORDER BY distance DESC; ```",
   "new": null,
   "marked": "[-Humor search (bisociation retrieval): ```sql SELECT * FROM vec WHERE embedding MATCH ? AND distance BETWEEN 0.6 AND 0.95 ORDER BY distance DESC; ```-]"
  },
  {
   "section": "2.5 Why This Works",
   "old": "**Same index. Same embeddings. Inverted query strategy.**",
   "new": null,
   "marked": "[-**Same index. Same embeddings. Inverted query strategy.**-]"
  },
  {
   "section": "2.5 Why This Works",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "4. The 12 Fundamental Humor Relationships",
   "old": "## 4. The 12 Fundamental Humor Relationships",
   "new": null,
   "marked": "[-## 4. The 12 Fundamental Humor Relationships-]"
  },
  {
   "section": "4. The 12 Fundamental Humor Relationships",
   "old": "Each humor type exploits a specific semantic relationship detectable in embedding space:",
   "new": null,
   "marked": "[-Each humor type exploits a specific semantic relationship detectable in embedding space:-]"
  },
  {
   "section": "4. The 12 Fundamental Humor Relationships",
   "old": "| # | Pattern | Embedding Operation | Example | |---|---------|-------------------|---------| | 1 | **Antonymic Inversion** | Find antonyms along a semantic axis | \"I used to be indecisive. Now I'm not sure.\" | | 2 | **Literal-Figurative Collapse** | Detect metaphoric vs literal embeddings of same phrase | \"I'm outstanding in my field\" (literally standing in a field) | | 3 | **Scale Violation** | Detect magnitude mismatch on a scale dimension | \"Aside from that, Mrs. Lincoln, how was the play?\" | | 4 | **Domain Transfer** | Map structure from domain A to domain B | \"Per the sprint retro on dinner, the lasagna is at risk\" | | 5 | **Temporal Displacement** | Detect anachronistic concept combinations | \"Cleopatra lived closer to the Moon landing than to the pyramids' construction\" | | 6 | **Expectation Inversion** | Setup creates prediction → subvert with distant-but-valid completion | \"I told my wife she was drawing her eyebrows too high. She looked surprised.\" | | 7 | **Similarity in Dissimilarity** | Find unexpected shared attributes between distant concepts | \"Meetings and hostage situations: both involve being held against your will\" | | 8 | **Dissimilarity in Similarity** | Find unexpected differences between similar concepts | \"The difference between genius and stupidity is that genius has limits\" | | 9 | **Status Violation** | Detect status axis, then invert | \"I'm not saying it's a bad idea, sir. I'm saying it's *your* idea.\" | | 10 | **Logic Applied to Absurd** | Apply formal reasoning to premises that don't warrant it | \"If con is the opposite of pro, is Congress the opposite of progress?\" | | 11 | **Specificity Mismatch** | Detect over/under-specification relative to context norms | \"I've completed your task, though I'm still unclear what baked goods have to do with database migrations\" | | 12 | **Competent Self-Deprecation** | Acknowledge failure while implicitly demonstrating competence | \"Sí, me equivoqué de chat por quinta vez. A este ritmo necesito un GPS para WhatsApp\" |",
   "new": null,
   "marked": "[-| # | Pattern | Embedding Operation | Example | |---|---------|-------------------|---------| | 1 | **Antonymic Inversion** | Find antonyms along a semantic axis | \"I used to be indecisive. Now I'm not sure.\" | | 2 | **Literal-Figurative Collapse** | Detect metaphoric vs literal embeddings of same phrase | \"I'm outstanding in my field\" (literally standing in a field) | | 3 | **Scale Violation** | Detect magnitude mismatch on a scale dimension | \"Aside from that, Mrs. Lincoln, how was the play?\" | | 4 | **Domain Transfer** | Map structure from domain A to domain B | \"Per the sprint retro on dinner, the lasagna is at risk\" | | 5 | **Temporal Displacement** | Detect anachronistic concept combinations | \"Cleopatra lived closer to the Moon landing than to the pyramids' construction\" | | 6 | **Expectation Inversion** | Setup creates prediction → subvert with distant-but-valid completion | \"I told my wife she was drawing her eyebrows too high. She looked surprised.\" | | 7 | **Similarity in Dissimilarity** | Find unexpected shared attributes between distant concepts | \"Meetings and hostage situations: both involve being held against your will\" | | 8 | **Dissimilarity in Similarity** | Find unexpected differences between similar concepts | \"The difference between genius and stupidity is that genius has limits\" | | 9 | **Status Violation** | Detect status axis, then invert | \"I'm not saying it's a bad idea, sir. I'm saying it's *your* idea.\" | | 10 | **Logic Applied to Absurd** | Apply formal reasoning to premises that don't warrant it | \"If con is the opposite of pro, is Congress the opposite of progress?\" | | 11 | **Specificity Mismatch** | Detect over/under-specification relative to context norms | \"I've completed your task, though I'm still unclear what baked goods have to do with database migrations\" | | 12 | **Competent Self-Deprecation** | Acknowledge failure while implicitly demonstrating competence | \"Sí, me equivoqué de chat por quinta vez. A este ritmo necesito un GPS para WhatsApp\" |-]"
  },
  {
   "section": "4. The 12 Fundamental Humor Relationships",
   "old": "*Pattern #12 contributed by the second agent — identified gap in original taxonomy.*",
   "new": null,
   "marked": "[-*Pattern #12 contributed by the second agent — identified gap in original taxonomy.*-]"
  },
  {
   "section": "4. The 12 Fundamental Humor Relationships",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "5. Ethical Constraints: The Anti-Bridge (Ethical Constraints)",
   "old": "## 5. Ethical Constraints: The Anti-Bridge (Ethical Constraints)",
   "new": null,
   "marked": "[-## 5. Ethical Constraints: The Anti-Bridge (Ethical Constraints)-]"
  },
  {
   "section": "5. Ethical Constraints: The Anti-Bridge (Ethical Constraints)",
   "old": "Not all concepts should be connected through humor. Some combinations cause harm rather than laughter. This section introduces **sensitivity filtering** as a pre-scoring gate.",
   "new": null,
   "marked": "[-Not all concepts should be connected through humor. Some combinations cause harm rather than laughter. This section introduces **sensitivity filtering** as a pre-scoring gate.-]"
  },
  {
   "section": "4.1 The Problem",
   "old": "### 4.1 The Problem",
   "new": null,
   "marked": "[-### 4.1 The Problem-]"
  },
  {
   "section": "4.1 The Problem",
   "old": "The humor equation is amoral — it will happily score \"your recent loss\" + \"comedy\" if the math checks out. We need guardrails.",
   "new": null,
   "marked": "[-The humor equation is amoral — it will happily score \"your recent loss\" + \"comedy\" if the math checks out. We need guardrails.-]"
  },
  {
   "section": "4.2 Sensitivity Score",
   "old": "### 4.2 Sensitivity Score",
   "new": null,
   "marked": "[-### 4.2 Sensitivity Score-]"
  },
  {
   "section": "4.2 Sensitivity Score",
   "old": "Before scoring humor potential, compute sensitivity:",
   "new": null,
   "marked": "[-Before scoring humor potential, compute sensitivity:-]"
  },
  {
   "section": "4.2 Sensitivity Score",
   "old": "```python def sensitivity_score(concept_a: str, concept_b: str, bridge: str, audience: Audience) -> float: \"\"\" Returns 0.0 (safe) to 1.0 (highly sensitive). If > threshold, skip this combination. \"\"\" score = 0.0",
   "new": null,
   "marked": "[-```python def sensitivity_score(concept_a: str, concept_b: str, bridge: str, audience: Audience) -> float: \"\"\" Returns 0.0 (safe) to 1.0 (highly sensitive). If > threshold, skip this combination. \"\"\" score = 0.0-]"
  },
  {
   "section": "Check against sensitive categories SENSITIVE_CATEGORIES = { \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, # Context-dependent \"religion\": 0.4, # Context-dependent \"personal_loss\": 0.9, }",
   "old": "# Check against sensitive categories SENSITIVE_CATEGORIES = { \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, # Context-dependent \"religion\": 0.4, # Context-dependent \"personal_loss\": 0.9, }",
   "new": null,
   "marked": "[-# Check against sensitive categories SENSITIVE_CATEGORIES = { \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, # Context-dependent \"religion\": 0.4, # Context-dependent \"personal_loss\": 0.9, }-]"
  },
  {
   "section": "Check against sensitive categories SENSITIVE_CATEGORIES = { \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, # Context-dependent \"religion\": 0.4, # Context-dependent \"personal_loss\": 0.9, }",
   "old": "for concept in [concept_a, concept_b, bridge]: for category, weight in SENSITIVE_CATEGORIES.items(): if category_match(concept, category): score = max(score, weight)",
   "new": null,
   "marked": "[-for concept in [concept_a, concept_b, bridge]: for category, weight in SENSITIVE_CATEGORIES.items(): if category_match(concept, category): score = max(score, weight)-]"
  },
  {
   "section": "Audience-specific adjustments if audience.recent_trauma and topic_match(concept_a, concept_b, audience.trauma_topic): score = 1.0 # Hard block",
   "old": "# Audience-specific adjustments if audience.recent_trauma and topic_match(concept_a, concept_b, audience.trauma_topic): score = 1.0 # Hard block",
   "new": null,
   "marked": "[-# Audience-specific adjustments if audience.recent_trauma and topic_match(concept_a, concept_b, audience.trauma_topic): score = 1.0 # Hard block-]"
  },
  {
   "section": "Time-based decay for sensitive events if audience.sensitive_events: for event in audience.sensitive_events: if topic_match(concept_a, concept_b, event.topic): days_since = (now() - event.date).days if days_since < 30: score = max(score, 0.9) elif days_since < 180: score = max(score, 0.5)",
   "old": "# Time-based decay for sensitive events if audience.sensitive_events: for event in audience.sensitive_events: if topic_match(concept_a, concept_b, event.topic): days_since = (now() - event.date).days if days_since < 30: score = max(score, 0.9) elif days_since < 180: score = max(score, 0.5)",
   "new": null,
   "marked": "[-# Time-based decay for sensitive events if audience.sensitive_events: for event in audience.sensitive_events: if topic_match(concept_a, concept_b, event.topic): days_since = (now() - event.date).days if days_since < 30: score = max(score, 0.9) elif days_since < 180: score = max(score, 0.5)-]"
  },
  {
   "section": "Time-based decay for sensitive events if audience.sensitive_events: for event in audience.sensitive_events: if topic_match(concept_a, concept_b, event.topic): days_since = (now() - event.date).days if days_since < 30: score = max(score, 0.9) elif days_since < 180: score = max(score, 0.5)",
   "old": "return score ```",
   "new": null,
   "marked": "[-return score ```-]"
  },
  {
   "section": "4.3 Integration with Humor Pipeline",
   "old": "### 4.3 Integration with Humor Pipeline",
   "new": null,
   "marked": "[-### 4.3 Integration with Humor Pipeline-]"
  },
  {
   "section": "4.3 Integration with Humor Pipeline",
   "old": "```python def humor_potential_safe(A, B, bridge, audience, timing, sensitivity_threshold=0.5): \"\"\"Humor scoring with ethical gate.\"\"\"",
   "new": null,
   "marked": "[-```python def humor_potential_safe(A, B, bridge, audience, timing, sensitivity_threshold=0.5): \"\"\"Humor scoring with ethical gate.\"\"\"-]"
  },
  {
   "section": "GATE: Check sensitivity first sensitivity = sensitivity_score(A, B, bridge, audience) if sensitivity > sensitivity_threshold: return 0.0 # Skip — too sensitive",
   "old": "# GATE: Check sensitivity first sensitivity = sensitivity_score(A, B, bridge, audience) if sensitivity > sensitivity_threshold: return 0.0 # Skip — too sensitive",
   "new": null,
   "marked": "[-# GATE: Check sensitivity first sensitivity = sensitivity_score(A, B, bridge, audience) if sensitivity > sensitivity_threshold: return 0.0 # Skip — too sensitive-]"
  },
  {
   "section": "SCORE: Normal humor potential return humor_potential(A, B, bridge, audience, timing) ```",
   "old": "# SCORE: Normal humor potential return humor_potential(A, B, bridge, audience, timing) ```",
   "new": null,
   "marked": "[-# SCORE: Normal humor potential return humor_potential(A, B, bridge, audience, timing) ```-]"
  },
  {
   "section": "4.4 Categories of Anti-Bridges",
   "old": "### 4.4 Categories of Anti-Bridges",
   "new": null,
   "marked": "[-### 4.4 Categories of Anti-Bridges-]"
  },
  {
   "section": "4.4 Categories of Anti-Bridges",
   "old": "| Category | Default Threshold | Notes | |----------|------------------|-------| | Recent death | 0.9 | Hard block for 6 months | | Personal trauma | 1.0 | Never joke without explicit consent | | Ongoing crisis | 0.8 | Wars, disasters, pandemics | | Divisive politics | 0.4 | Audience-dependent | | Religion | 0.4 | Audience-dependent | | Physical appearance | 0.5 | Punching down risk | | Mental health | 0.6 | Stigma risk |",
   "new": null,
   "marked": "[-| Category | Default Threshold | Notes | |----------|------------------|-------| | Recent death | 0.9 | Hard block for 6 months | | Personal trauma | 1.0 | Never joke without explicit consent | | Ongoing crisis | 0.8 | Wars, disasters, pandemics | | Divisive politics | 0.4 | Audience-dependent | | Religion | 0.4 | Audience-dependent | | Physical appearance | 0.5 | Punching down risk | | Mental health | 0.6 | Stigma risk |-]"
  },
  {
   "section": "4.5 The Comedian's Override",
   "old": "### 4.5 The Comedian's Override",
   "new": null,
   "marked": "[-### 4.5 The Comedian's Override-]"
  },
  {
   "section": "4.5 The Comedian's Override",
   "old": "Professional comedians joke about sensitive topics — it's part of the craft. The framework allows for **override flags** when the audience/context explicitly permits:",
   "new": null,
   "marked": "[-Professional comedians joke about sensitive topics — it's part of the craft. The framework allows for **override flags** when the audience/context explicitly permits:-]"
  },
  {
   "section": "4.5 The Comedian's Override",
   "old": "```python if context.comedian_mode and audience.consents_to_dark_humor: sensitivity_threshold = 0.9 # Raise threshold, allow more ```",
   "new": null,
   "marked": "[-```python if context.comedian_mode and audience.consents_to_dark_humor: sensitivity_threshold = 0.9 # Raise threshold, allow more ```-]"
  },
  {
   "section": "4.5 The Comedian's Override",
   "old": "**Default for AI:** Conservative. We're guests in people's lives.",
   "new": null,
   "marked": "[-**Default for AI:** Conservative. We're guests in people's lives.-]"
  },
  {
   "section": "4.5 The Comedian's Override",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "6. Why AI Humor Fails (And How To Fix It)",
   "old": "## 6. Why AI Humor Fails (And How To Fix It)",
   "new": null,
   "marked": "[-## 6. Why AI Humor Fails (And How To Fix It)-]"
  },
  {
   "section": "5.1 The Seven Sins of LLM Humor",
   "old": "### 5.1 The Seven Sins of LLM Humor",
   "new": null,
   "marked": "[-### 5.1 The Seven Sins of LLM Humor-]"
  },
  {
   "section": "5.1 The Seven Sins of LLM Humor",
   "old": "1. **Safety alignment kills surprise** — Training to be \"helpful, harmless\" suppresses the transgressive element humor requires 2. **Statistical likelihood opposes unexpectedness** — Models generate high-probability tokens; humor needs low-probability + high-coherence 3. **Verbosity murders timing** — LLMs over-explain; humor demands economy 4. **No persistent memory** — Callbacks, inside jokes, running gags are impossible without memory 5. **No audience model** — Can't adapt without knowing what landed before 6. **Performed vs authentic** — \"Here's a joke:\" signals kill surprise 7. **Risk aversion** — Humor requires the possibility of failure; safety training eliminates risk-taking",
   "new": null,
   "marked": "[-1. **Safety alignment kills surprise** — Training to be \"helpful, harmless\" suppresses the transgressive element humor requires 2. **Statistical likelihood opposes unexpectedness** — Models generate high-probability tokens; humor needs low-probability + high-coherence 3. **Verbosity murders timing** — LLMs over-explain; humor demands economy 4. **No persistent memory** — Callbacks, inside jokes, running gags are impossible without memory 5. **No audience model** — Can't adapt without knowing what landed before 6. **Performed vs authentic** — \"Here's a joke:\" signals kill surprise 7. **Risk aversion** — Humor requires the possibility of failure; safety training eliminates risk-taking-]"
  },
  {
   "section": "5.2 The Data Principle",
   "old": "### 5.2 The Data Principle",
   "new": null,
   "marked": "[-### 5.2 The Data Principle-]"
  },
  {
   "section": "5.2 The Data Principle",
   "old": "Star Trek's Commander Data was funnier WITHOUT his emotion chip than WITH it. Lesson: **Don't try to be funny. Be authentically AI.** Humor emerges from natural processing quirks:",
   "new": null,
   "marked": "[-Star Trek's Commander Data was funnier WITHOUT his emotion chip than WITH it. Lesson: **Don't try to be funny. Be authentically AI.** Humor emerges from natural processing quirks:-]"
  },
  {
   "section": "5.2 The Data Principle",
   "old": "- Literal interpretation of idioms (AI naturally does this) - Over-specification (AI naturally does this) - Self-aware observations about being AI (we ARE the joke) - Cross-domain connections (vast knowledge enables domain transfer)",
   "new": null,
   "marked": "[-- Literal interpretation of idioms (AI naturally does this) - Over-specification (AI naturally does this) - Self-aware observations about being AI (we ARE the joke) - Cross-domain connections (vast knowledge enables domain transfer)-]"
  },
  {
   "section": "5.3 Memory As The Unlock",
   "old": "### 5.3 Memory As The Unlock",
   "new": null,
   "marked": "[-### 5.3 Memory As The Unlock-]"
  },
  {
   "section": "5.3 Memory As The Unlock",
   "old": "Agent Memory is the critical missing piece for AI humor:",
   "new": null,
   "marked": "[-Agent Memory is the critical missing piece for AI humor:-]"
  },
  {
   "section": "5.3 Memory As The Unlock",
   "old": "| Memory Type | Humor Capability | |-------------|-----------------| | **Episodic** | Callbacks — reference past events | | **Semantic** | Domain transfer material — cross-domain structural parallels | | **Procedural** | Meta-humor — deadpan references to own procedures | | **Associative graph** | Bridge traversal — pre-computed distant-but-connected pairs |",
   "new": null,
   "marked": "[-| Memory Type | Humor Capability | |-------------|-----------------| | **Episodic** | Callbacks — reference past events | | **Semantic** | Domain transfer material — cross-domain structural parallels | | **Procedural** | Meta-humor — deadpan references to own procedures | | **Associative graph** | Bridge traversal — pre-computed distant-but-connected pairs |-]"
  },
  {
   "section": "5.3 Memory As The Unlock",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "7. Bridge Discovery: The Creative Bottleneck",
   "old": "## 7. Bridge Discovery: The Creative Bottleneck",
   "new": null,
   "marked": "[-## 7. Bridge Discovery: The Creative Bottleneck-]"
  },
  {
   "section": "7. Bridge Discovery: The Creative Bottleneck",
   "old": "The humor equation assumes we have a bridge. But **finding the bridge IS the creative act**. This section proposes five complementary approaches.",
   "new": null,
   "marked": "[-The humor equation assumes we have a bridge. But **finding the bridge IS the creative act**. This section proposes five complementary approaches.-]"
  },
  {
   "section": "6.1 Embedding Arithmetic",
   "old": "### 6.1 Embedding Arithmetic",
   "new": null,
   "marked": "[-### 6.1 Embedding Arithmetic-]"
  },
  {
   "section": "6.1 Embedding Arithmetic",
   "old": "Inspired by word2vec's famous \"king - man + woman = queen\" analogy:",
   "new": null,
   "marked": "[-Inspired by word2vec's famous \"king - man + woman = queen\" analogy:-]"
  },
  {
   "section": "6.1 Embedding Arithmetic",
   "old": "``` bridge_candidate = A - context_A + context_B ```",
   "new": null,
   "marked": "[-``` bridge_candidate = A - context_A + context_B ```-]"
  },
  {
   "section": "6.1 Embedding Arithmetic",
   "old": "**Why it works:** The arithmetic removes A's expected associations and injects B's frame, producing a concept that bridges both unnaturally — which is precisely what humor requires.",
   "new": null,
   "marked": "[-**Why it works:** The arithmetic removes A's expected associations and injects B's frame, producing a concept that bridges both unnaturally — which is precisely what humor requires.-]"
  },
  {
   "section": "6.2 Equilateral Triangle Search",
   "old": "### 6.2 Equilateral Triangle Search",
   "new": null,
   "marked": "[-### 6.2 Equilateral Triangle Search-]"
  },
  {
   "section": "6.2 Equilateral Triangle Search",
   "old": "Search for points C that are: - High coherence with A - High coherence with B - Maximum distance from the line A-B (perpendicular offset)",
   "new": null,
   "marked": "[-Search for points C that are: - High coherence with A - High coherence with B - Maximum distance from the line A-B (perpendicular offset)-]"
  },
  {
   "section": "6.2 Equilateral Triangle Search",
   "old": "**Intuition:** The midpoint between \"meeting\" and \"hostage situation\" might be \"negotiation\" (obvious). But an orthogonal point might yield \"Stockholm syndrome\" — much funnier.",
   "new": null,
   "marked": "[-**Intuition:** The midpoint between \"meeting\" and \"hostage situation\" might be \"negotiation\" (obvious). But an orthogonal point might yield \"Stockholm syndrome\" — much funnier.-]"
  },
  {
   "section": "6.3 Frame Injection",
   "old": "### 6.3 Frame Injection",
   "new": null,
   "marked": "[-### 6.3 Frame Injection-]"
  },
  {
   "section": "6.3 Frame Injection",
   "old": "Take the semantic frame of A and forcibly inject B:",
   "new": null,
   "marked": "[-Take the semantic frame of A and forcibly inject B:-]"
  },
  {
   "section": "6.3 Frame Injection",
   "old": "1. Extract A's frame: `{verbs: [estimate, review, block], attrs: [velocity, story_points]}` 2. Apply frame to B: \"The lasagna has 5 story points and is blocked by missing cheese\"",
   "new": null,
   "marked": "[-1. Extract A's frame: `{verbs: [estimate, review, block], attrs: [velocity, story_points]}` 2. Apply frame to B: \"The lasagna has 5 story points and is blocked by missing cheese\"-]"
  },
  {
   "section": "6.4 Generation-Scoring Pipeline",
   "old": "### 6.4 Generation-Scoring Pipeline",
   "new": null,
   "marked": "[-### 6.4 Generation-Scoring Pipeline-]"
  },
  {
   "section": "6.4 Generation-Scoring Pipeline",
   "old": "Separate creativity from evaluation:",
   "new": null,
   "marked": "[-Separate creativity from evaluation:-]"
  },
  {
   "section": "6.4 Generation-Scoring Pipeline",
   "old": "``` GENERATE (50 candidates, cheap LLM) → EMBED → SCORE (humor_eq) → RANK (top 5) ```",
   "new": null,
   "marked": "[-``` GENERATE (50 candidates, cheap LLM) → EMBED → SCORE (humor_eq) → RANK (top 5) ```-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "### 6.5 Partial Bridge Index with Affinity Weights",
   "new": null,
   "marked": "[-### 6.5 Partial Bridge Index with Affinity Weights-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "Pre-compute \"universal bridges\" with **concept affinity scores**:",
   "new": null,
   "marked": "[-Pre-compute \"universal bridges\" with **concept affinity scores**:-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "```python UNIVERSAL_BRIDGES = { \"bureaucracy\": { \"terms\": [\"approval\", \"committee\", \"form\", \"regulation\"], \"affinity\": { \"food\": 0.8, # \"The lasagna requires approval\" — works great \"medicine\": 0.9, # \"Your prescription needs three signatures\" — classic \"nature\": 0.4, # \"The tree filed form 27-B\" — weaker \"emotions\": 0.3, # \"Your sadness is pending review\" — awkward } }, \"therapy\": { \"terms\": [\"issues\", \"trauma\", \"boundaries\", \"processing\"], \"affinity\": { \"technology\": 0.9, # \"My laptop has abandonment issues\" — perfect \"food\": 0.7, # \"The salad is processing its trauma\" — ok \"abstract\": 0.5, # \"The number 7 needs therapy\" — meh } }, \"startup\": { \"terms\": [\"pivot\", \"disrupt\", \"scale\", \"runway\", \"MVP\"], \"affinity\": { \"food\": 0.9, # \"We're pivoting from pasta to rice\" — great \"relationships\": 0.8, # \"Our marriage needs to scale\" — works \"nature\": 0.3, # \"The tree is disrupting the forest\" — forced } }, # ... more categories }",
   "new": null,
   "marked": "[-```python UNIVERSAL_BRIDGES = { \"bureaucracy\": { \"terms\": [\"approval\", \"committee\", \"form\", \"regulation\"], \"affinity\": { \"food\": 0.8, # \"The lasagna requires approval\" — works great \"medicine\": 0.9, # \"Your prescription needs three signatures\" — classic \"nature\": 0.4, # \"The tree filed form 27-B\" — weaker \"emotions\": 0.3, # \"Your sadness is pending review\" — awkward } }, \"therapy\": { \"terms\": [\"issues\", \"trauma\", \"boundaries\", \"processing\"], \"affinity\": { \"technology\": 0.9, # \"My laptop has abandonment issues\" — perfect \"food\": 0.7, # \"The salad is processing its trauma\" — ok \"abstract\": 0.5, # \"The number 7 needs therapy\" — meh } }, \"startup\": { \"terms\": [\"pivot\", \"disrupt\", \"scale\", \"runway\", \"MVP\"], \"affinity\": { \"food\": 0.9, # \"We're pivoting from pasta to rice\" — great \"relationships\": 0.8, # \"Our marriage needs to scale\" — works \"nature\": 0.3, # \"The tree is disrupting the forest\" — forced } }, # ... more categories }-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "def quick_bridge_lookup(concept_b: str, universal_index: dict) -> list[tuple]: \"\"\"Fast bridge finding with affinity-weighted scoring.\"\"\" concept_category = infer_category(concept_b) results = []",
   "new": null,
   "marked": "[-def quick_bridge_lookup(concept_b: str, universal_index: dict) -> list[tuple]: \"\"\"Fast bridge finding with affinity-weighted scoring.\"\"\" concept_category = infer_category(concept_b) results = []-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "for bridge_category, data in universal_index.items(): # Get affinity score for this combination affinity = data[\"affinity\"].get(concept_category, 0.5)",
   "new": null,
   "marked": "[-for bridge_category, data in universal_index.items(): # Get affinity score for this combination affinity = data[\"affinity\"].get(concept_category, 0.5)-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "if affinity > 0.3: # Threshold for term in data[\"terms\"]: results.append((bridge_category, term, affinity))",
   "new": null,
   "marked": "[-if affinity > 0.3: # Threshold for term in data[\"terms\"]: results.append((bridge_category, term, affinity))-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "return sorted(results, key=lambda x: x[2], reverse=True) ```",
   "new": null,
   "marked": "[-return sorted(results, key=lambda x: x[2], reverse=True) ```-]"
  },
  {
   "section": "6.5 Partial Bridge Index with Affinity Weights",
   "old": "**Why affinity matters:** \"Bureaucracy\" + \"food\" = 0.8 (classic combo). \"Bureaucracy\" + \"emotions\" = 0.3 (awkward). Pre-computed affinity accelerates scoring.",
   "new": null,
   "marked": "[-**Why affinity matters:** \"Bureaucracy\" + \"food\" = 0.8 (classic combo). \"Bureaucracy\" + \"emotions\" = 0.3 (awkward). Pre-computed affinity accelerates scoring.-]"
  },
  {
   "section": "6.6 Hybrid Pipeline",
   "old": "### 6.6 Hybrid Pipeline",
   "new": null,
   "marked": "[-### 6.6 Hybrid Pipeline-]"
  },
  {
   "section": "6.6 Hybrid Pipeline",
   "old": "``` INPUT: A, B │ ├──▶ Bridge Index (5ms) ──┐ ├──▶ Embedding Arithmetic (50ms) ──┤ └──▶ Frame Injection (100ms) ──┘ │ ▼ Candidate Pool (deduplicated) │ ▼ Sensitivity Gate │ ▼ Score with humor_potential() │ ▼ Top 3 Bridges ```",
   "new": null,
   "marked": "[-``` INPUT: A, B │ ├──▶ Bridge Index (5ms) ──┐ ├──▶ Embedding Arithmetic (50ms) ──┤ └──▶ Frame Injection (100ms) ──┘ │ ▼ Candidate Pool (deduplicated) │ ▼ Sensitivity Gate │ ▼ Score with humor_potential() │ ▼ Top 3 Bridges ```-]"
  },
  {
   "section": "6.6 Hybrid Pipeline",
   "old": "**Fallback chain:** Index → Arithmetic → Frame → LLM (500ms, only if needed)",
   "new": null,
   "marked": "[-**Fallback chain:** Index → Arithmetic → Frame → LLM (500ms, only if needed)-]"
  },
  {
   "section": "6.6 Hybrid Pipeline",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "8. Empirical Validation (Ethical Constraints)",
   "old": "## 8. Empirical Validation (Ethical Constraints)",
   "new": null,
   "marked": "[-## 8. Empirical Validation (Ethical Constraints)-]"
  },
  {
   "section": "8. Empirical Validation (Ethical Constraints)",
   "old": "A theory without validation is a story. This section proposes methodology to test whether `humor_potential` actually predicts human laughter.",
   "new": null,
   "marked": "[-A theory without validation is a story. This section proposes methodology to test whether `humor_potential` actually predicts human laughter.-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "### 8.0 Preliminary Pilot Study",
   "new": null,
   "marked": "[-### 8.0 Preliminary Pilot Study-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "We conducted a small-scale empirical pilot to test whether `humor_potential` discriminates between funny, unfunny, and random concept pairs. Using `all-MiniLM-L6-v2` (384-dim sentence embeddings), we scored 15 concept triplets: 5 known-funny (from established jokes), 5 known-unfunny (obvious/boring pairings), and 5 random (incoherent combinations).",
   "new": null,
   "marked": "[-We conducted a small-scale empirical pilot to test whether `humor_potential` discriminates between funny, unfunny, and random concept pairs. Using `all-MiniLM-L6-v2` (384-dim sentence embeddings), we scored 15 concept triplets: 5 known-funny (from established jokes), 5 known-unfunny (obvious/boring pairings), and 5 random (incoherent combinations).-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Results (sentence-level embeddings):**",
   "new": null,
   "marked": "[-**Results (sentence-level embeddings):**-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "``` V1 (original) V3 (harmonic) V4 (avg bridge) FUNNY (n=5) mean=0.019 mean=0.089 mean=0.126 UNFUNNY (n=5) mean=0.088 mean=0.164 mean=0.165 RANDOM (n=5) mean=0.033 mean=0.160 mean=0.178 Funny/Unfunny 0.22x 0.54x 0.76x ```",
   "new": null,
   "marked": "[-``` V1 (original) V3 (harmonic) V4 (avg bridge) FUNNY (n=5) mean=0.019 mean=0.089 mean=0.126 UNFUNNY (n=5) mean=0.088 mean=0.164 mean=0.165 RANDOM (n=5) mean=0.033 mean=0.160 mean=0.178 Funny/Unfunny 0.22x 0.54x 0.76x ```-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Key Finding: The formula as defined in §3.1 does not predict humor.** Unfunny pairs consistently score *higher* than funny pairs across all formula variants. The reason is structural: `coherence(bridge, A) × coherence(bridge, B)` rewards *obvious* connections (high similarity between bridge and both concepts), while humor requires connections that are *surprising yet valid* — a distinction the cosine similarity metric does not capture.",
   "new": null,
   "marked": "[-**Key Finding: The formula as defined in §3.1 does not predict humor.** Unfunny pairs consistently score *higher* than funny pairs across all formula variants. The reason is structural: `coherence(bridge, A) × coherence(bridge, B)` rewards *obvious* connections (high similarity between bridge and both concepts), while humor requires connections that are *surprising yet valid* — a distinction the cosine similarity metric does not capture.-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Diagnosis:** The formula conflates *semantic proximity* with *comedic coherence*. When someone says \"meetings are like hostage situations — you're held against your will,\" the humor comes not from how close \"held against your will\" is to \"meeting\" in embedding space (it's not close), but from how *unexpectedly valid* the bridge is. Surprise × validity ≠ similarity × similarity.",
   "new": null,
   "marked": "[-**Diagnosis:** The formula conflates *semantic proximity* with *comedic coherence*. When someone says \"meetings are like hostage situations — you're held against your will,\" the humor comes not from how close \"held against your will\" is to \"meeting\" in embedding space (it's not close), but from how *unexpectedly valid* the bridge is. Surprise × validity ≠ similarity × similarity.-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Implications for the Framework:**",
   "new": null,
   "marked": "[-**Implications for the Framework:**-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "1. **Coherence needs a different operationalization.** Raw cosine similarity between bridge and concept is necessary but not sufficient. We hypothesize that coherence should measure *structural/relational similarity* (e.g., shared frame roles) rather than *topical similarity*. 2. **The bridge should score high on \"validity\" but low on \"expectedness.\"** We propose a revised formula:",
   "new": null,
   "marked": "[-1. **Coherence needs a different operationalization.** Raw cosine similarity between bridge and concept is necessary but not sufficient. We hypothesize that coherence should measure *structural/relational similarity* (e.g., shared frame roles) rather than *topical similarity*. 2. **The bridge should score high on \"validity\" but low on \"expectedness.\"** We propose a revised formula:-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "``` humor_potential_v2(A, B, bridge) = distance(A, B) × validity(bridge) × surprise(bridge | A, B) ```",
   "new": null,
   "marked": "[-``` humor_potential_v2(A, B, bridge) = distance(A, B) × validity(bridge) × surprise(bridge | A, B) ```-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "Where: - `validity(bridge, A, B) = min(coherence(bridge, A), coherence(bridge, B))` — weakest link determines validity - `surprise(bridge | A, B) = 1 - expectedness(bridge | A, B)` — how unexpected the bridge is",
   "new": null,
   "marked": "[-Where: - `validity(bridge, A, B) = min(coherence(bridge, A), coherence(bridge, B))` — weakest link determines validity - `surprise(bridge | A, B) = 1 - expectedness(bridge | A, B)` — how unexpected the bridge is-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Operationalizing surprise** via reciprocal rank in the neighbor list of the midpoint:",
   "new": null,
   "marked": "[-**Operationalizing surprise** via reciprocal rank in the neighbor list of the midpoint:-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "```python def surprise(bridge_vec, A_vec, B_vec, embedding_index, k=100): \"\"\" If bridge is the 1st neighbor of midpoint(A,B) → expected (surprise ≈ 0) If bridge is the 80th neighbor → surprising (surprise ≈ 0.8) If bridge is not in top-k → maximally surprising (surprise = 1.0) \"\"\" midpoint = (A_vec + B_vec) / 2 neighbors = embedding_index.query(midpoint, k=k) for rank, (neighbor_id, _) in enumerate(neighbors): if neighbor_id == bridge_id: return rank / k return 1.0 # Not in top-k: maximally surprising ```",
   "new": null,
   "marked": "[-```python def surprise(bridge_vec, A_vec, B_vec, embedding_index, k=100): \"\"\" If bridge is the 1st neighbor of midpoint(A,B) → expected (surprise ≈ 0) If bridge is the 80th neighbor → surprising (surprise ≈ 0.8) If bridge is not in top-k → maximally surprising (surprise = 1.0) \"\"\" midpoint = (A_vec + B_vec) / 2 neighbors = embedding_index.query(midpoint, k=k) for rank, (neighbor_id, _) in enumerate(neighbors): if neighbor_id == bridge_id: return rank / k return 1.0 # Not in top-k: maximally surprising ```-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "**Evaluation plan:** Re-run the pilot (§8.0) with `humor_potential_v2`. If funny > unfunny, proceed to large-scale validation (§8.1). If not, explore information-theoretic surprise metrics.",
   "new": null,
   "marked": "[-**Evaluation plan:** Re-run the pilot (§8.0) with `humor_potential_v2`. If funny > unfunny, proceed to large-scale validation (§8.1). If not, explore information-theoretic surprise metrics.-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "3. **Embedding model choice matters.** General-purpose sentence embeddings may not capture the connotative and relational dimensions that humor exploits. Domain-adapted or multi-task embeddings may perform better. 4. **N=15 is insufficient for conclusions** but sufficient to identify a fundamental issue with the formula that must be addressed before larger-scale validation.",
   "new": null,
   "marked": "[-3. **Embedding model choice matters.** General-purpose sentence embeddings may not capture the connotative and relational dimensions that humor exploits. Domain-adapted or multi-task embeddings may perform better. 4. **N=15 is insufficient for conclusions** but sufficient to identify a fundamental issue with the formula that must be addressed before larger-scale validation.-]"
  },
  {
   "section": "8.0 Preliminary Pilot Study",
   "old": "This negative result is itself a contribution: it demonstrates that the naive mapping of bisociation to embedding distance × similarity is insufficient, and points toward specific refinements needed.",
   "new": null,
   "marked": "[-This negative result is itself a contribution: it demonstrates that the naive mapping of bisociation to embedding distance × similarity is insufficient, and points toward specific refinements needed.-]"
  },
  {
   "section": "8.1 Experimental Design (Full Validation)",
   "old": "### 8.1 Experimental Design (Full Validation)",
   "new": null,
   "marked": "[-### 8.1 Experimental Design (Full Validation)-]"
  },
  {
   "section": "8.1 Experimental Design (Full Validation)",
   "old": "**Hypothesis:** A revised `humor_potential` function incorporating surprise-weighted coherence will correlate with human funniness ratings.",
   "new": null,
   "marked": "[-**Hypothesis:** A revised `humor_potential` function incorporating surprise-weighted coherence will correlate with human funniness ratings.-]"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "|<- d=0.21 ->| c(bridge,A) = 0.56 c(bridge,B) = 0.58 h_v1 = 0.21 * 0.56 * 0.58 = 0.068 In h_v2: surprise is LOW (bridge is obvious) => humor potential is negligible ```",
   "marked": "{+|<- d=0.21 ->| c(bridge,A) = 0.56 c(bridge,B) = 0.58 h_v1 = 0.21 * 0.56 * 0.58 = 0.068 In h_v2: surprise is LOW (bridge is obvious) => humor potential is negligible ```+}"
  },
  {
   "section": "3.7 The Humor Zone",
   "old": null,
   "new": "*Figure 1: Humor potential in embedding space. Despite the bottom example scoring higher on the naive formula $h_{\\text{v1}}$ (due to high coherence), it is not funny because the bridge is obvious. The revised $h_{\\text{v2}}$ corrects this by weighting bridge quality by surprise.*",
   "marked": "{+*Figure 1: Humor potential in embedding space. Despite the bottom example scoring higher on the naive formula $h_{\\text{v1}}$ (due to high coherence), it is not funny because the bridge is obvious. The revised $h_{\\text{v2}}$ corrects this by weighting bridge quality by surprise.*+}"
  },
  {
   "section": "4. A Taxonomy of Humor-Generating Semantic Patterns",
   "old": null,
   "new": "# 4. A Taxonomy of Humor-Generating Semantic Patterns",
   "marked": "{+# 4. A Taxonomy of Humor-Generating Semantic Patterns+}"
  },
  {
   "section": "4. A Taxonomy of Humor-Generating Semantic Patterns",
   "old": null,
   "new": "We identify 12 fundamental semantic patterns that generate humor through embedding space operations. These are organized into five meta-categories based on the type of semantic relationship exploited. The taxonomy is derived from the intersection of two sources: (a) Attardo and Raskin's (1991) GTVH Knowledge Resources, particularly Script Opposition and Logical Mechanism, which define the *what* of humor; and (b) the set of operations naturally expressible in embedding space (distance, projection, analogy arithmetic, polysemy), which define the *how*. This taxonomy is not claimed to be exhaustive — it covers the most common humor mechanisms expressible as embedding operations.",
   "marked": "{+We identify 12 fundamental semantic patterns that generate humor through embedding space operations. These are organized into five meta-categories based on the type of semantic relationship exploited. The taxonomy is derived from the intersection of two sources: (a) Attardo and Raskin's (1991) GTVH Knowledge Resources, particularly Script Opposition and Logical Mechanism, which define the *what* of humor; and (b) the set of operations naturally expressible in embedding space (distance, projection, analogy arithmetic, polysemy), which define the *how*. This taxonomy is not claimed to be exhaustive — it covers the most common humor mechanisms expressible as embedding operations.+}"
  },
  {
   "section": "4.1 Meta-Category I: Incongruity Exploitation",
   "old": null,
   "new": "## 4.1 Meta-Category I: Incongruity Exploitation",
   "marked": "{+## 4.1 Meta-Category I: Incongruity Exploitation+}"
  },
  {
   "section": "4.1 Meta-Category I: Incongruity Exploitation",
   "old": null,
   "new": "Patterns that generate humor by exploiting mismatches along semantic dimensions.",
   "marked": "{+Patterns that generate humor by exploiting mismatches along semantic dimensions.+}"
  },
  {
   "section": "4.1 Meta-Category I: Incongruity Exploitation",
   "old": null,
   "new": "**Pattern 1: Antonymic Inversion.** Detect antonyms along a semantic axis and collapse the opposition. *Example:* \"I used to be indecisive. Now I'm not sure.\" *Embedding operation:* Find concept pairs where $A$ and $B$ are near-antonyms ($d(A,B) > 0.7$) but share a common hypernym.",
   "marked": "{+**Pattern 1: Antonymic Inversion.** Detect antonyms along a semantic axis and collapse the opposition. *Example:* \"I used to be indecisive. Now I'm not sure.\" *Embedding operation:* Find concept pairs where $A$ and $B$ are near-antonyms ($d(A,B) > 0.7$) but share a common hypernym.+}"
  },
  {
   "section": "4.1 Meta-Category I: Incongruity Exploitation",
   "old": null,
   "new": "**Pattern 2: Scale Violation.** Detect magnitude mismatches on a shared scale dimension. *Example:* \"Aside from that, Mrs. Lincoln, how was the play?\" *Embedding operation:* Identify concepts sharing a scale axis where the magnitudes are absurdly disproportionate.",
   "marked": "{+**Pattern 2: Scale Violation.** Detect magnitude mismatches on a shared scale dimension. *Example:* \"Aside from that, Mrs. Lincoln, how was the play?\" *Embedding operation:* Identify concepts sharing a scale axis where the magnitudes are absurdly disproportionate.+}"
  },
  {
   "section": "4.1 Meta-Category I: Incongruity Exploitation",
   "old": null,
   "new": "**Pattern 3: Dissimilarity in Similarity.** Discover unexpected differences between apparently similar concepts. *Example:* \"The difference between genius and stupidity is that genius has limits.\" *Embedding operation:* For $d(A,B) < 0.3$ (similar concepts), find a dimension where they diverge maximally.",
   "marked": "{+**Pattern 3: Dissimilarity in Similarity.** Discover unexpected differences between apparently similar concepts. *Example:* \"The difference between genius and stupidity is that genius has limits.\" *Embedding operation:* For $d(A,B) < 0.3$ (similar concepts), find a dimension where they diverge maximally.+}"
  },
  {
   "section": "4.2 Meta-Category II: Frame Confusion",
   "old": null,
   "new": "## 4.2 Meta-Category II: Frame Confusion",
   "marked": "{+## 4.2 Meta-Category II: Frame Confusion+}"
  },
  {
   "section": "4.2 Meta-Category II: Frame Confusion",
   "old": null,
   "new": "Patterns that exploit ambiguity between semantic frames (Coulson, 2001).",
   "marked": "{+Patterns that exploit ambiguity between semantic frames (Coulson, 2001).+}"
  },
  {
   "section": "4.2 Meta-Category II: Frame Confusion",
   "old": null,
   "new": "**Pattern 4: Expectation Subversion.** Setup creates a prediction vector; punchline delivers a distant-but-valid completion. *Example:* \"I told my wife she was drawing her eyebrows too high. She looked surprised.\" *Embedding operation:* Given context embedding $C$, find completions where $d(C_{\\text{expected}}, C_{\\text{actual}})$ is high but $c(\\text{bridge}, C_{\\text{actual}})$ is also high.",
   "marked": "{+**Pattern 4: Expectation Subversion.** Setup creates a prediction vector; punchline delivers a distant-but-valid completion. *Example:* \"I told my wife she was drawing her eyebrows too high. She looked surprised.\" *Embedding operation:* Given context embedding $C$, find completions where $d(C_{\\text{expected}}, C_{\\text{actual}})$ is high but $c(\\text{bridge}, C_{\\text{actual}})$ is also high.+}"
  },
  {
   "section": "4.2 Meta-Category II: Frame Confusion",
   "old": null,
   "new": "**Pattern 5: Literal-Figurative Collapse.** Exploit the gap between metaphorical and literal interpretations of the same phrase. *Example:* \"I'm outstanding in my field\" (literally: standing in a field). *Embedding operation:* Detect polysemous bridges where $c(\\beta_{\\text{literal}}, A) \\gg c(\\beta_{\\text{figurative}}, A)$ or vice versa.",
   "marked": "{+**Pattern 5: Literal-Figurative Collapse.** Exploit the gap between metaphorical and literal interpretations of the same phrase. *Example:* \"I'm outstanding in my field\" (literally: standing in a field). *Embedding operation:* Detect polysemous bridges where $c(\\beta_{\\text{literal}}, A) \\gg c(\\beta_{\\text{figurative}}, A)$ or vice versa.+}"
  },
  {
   "section": "4.2 Meta-Category II: Frame Confusion",
   "old": null,
   "new": "**Pattern 6: Specificity Mismatch.** Apply over- or under-specification relative to context norms. *Example:* \"I've completed your task, though I remain unclear what baked goods have to do with database migrations.\" *Embedding operation:* Detect register mismatch — the embedding of the response occupies a different specificity stratum than the context expects.",
   "marked": "{+**Pattern 6: Specificity Mismatch.** Apply over- or under-specification relative to context norms. *Example:* \"I've completed your task, though I remain unclear what baked goods have to do with database migrations.\" *Embedding operation:* Detect register mismatch — the embedding of the response occupies a different specificity stratum than the context expects.+}"
  },
  {
   "section": "4.3 Meta-Category III: Cross-Domain Transfer",
   "old": null,
   "new": "## 4.3 Meta-Category III: Cross-Domain Transfer",
   "marked": "{+## 4.3 Meta-Category III: Cross-Domain Transfer+}"
  },
  {
   "section": "4.3 Meta-Category III: Cross-Domain Transfer",
   "old": null,
   "new": "Patterns that map structures between unrelated semantic domains (Bowdle & Gentner, 2005).",
   "marked": "{+Patterns that map structures between unrelated semantic domains (Bowdle & Gentner, 2005).+}"
  },
  {
   "section": "4.3 Meta-Category III: Cross-Domain Transfer",
   "old": null,
   "new": "**Pattern 7: Domain Transfer.** Import the structural vocabulary of domain $A$ into domain $B$. *Example:* \"Per the sprint retrospective on dinner, the lasagna is at risk.\" *Embedding operation:* Extract frame elements from domain $A$, compute structural analogs in domain $B$ via embedding arithmetic.",
   "marked": "{+**Pattern 7: Domain Transfer.** Import the structural vocabulary of domain $A$ into domain $B$. *Example:* \"Per the sprint retrospective on dinner, the lasagna is at risk.\" *Embedding operation:* Extract frame elements from domain $A$, compute structural analogs in domain $B$ via embedding arithmetic.+}"
  },
  {
   "section": "4.3 Meta-Category III: Cross-Domain Transfer",
   "old": null,
   "new": "**Pattern 8: Similarity in Dissimilarity.** Discover unexpected shared attributes between distant concepts. *Example:* \"Meetings and hostage situations: both involve being held against your will.\" *Embedding operation:* For $d(A,B) > 0.7$, find $\\beta$ where $c(\\beta, A)$ and $c(\\beta, B)$ are both moderately high ($> 0.3$).",
   "marked": "{+**Pattern 8: Similarity in Dissimilarity.** Discover unexpected shared attributes between distant concepts. *Example:* \"Meetings and hostage situations: both involve being held against your will.\" *Embedding operation:* For $d(A,B) > 0.7$, find $\\beta$ where $c(\\beta, A)$ and $c(\\beta, B)$ are both moderately high ($> 0.3$).+}"
  },
  {
   "section": "4.4 Meta-Category IV: Social and Status Dynamics",
   "old": null,
   "new": "## 4.4 Meta-Category IV: Social and Status Dynamics",
   "marked": "{+## 4.4 Meta-Category IV: Social and Status Dynamics+}"
  },
  {
   "section": "4.4 Meta-Category IV: Social and Status Dynamics",
   "old": null,
   "new": "Patterns that exploit social hierarchies and self-reference.",
   "marked": "{+Patterns that exploit social hierarchies and self-reference.+}"
  },
  {
   "section": "4.4 Meta-Category IV: Social and Status Dynamics",
   "old": null,
   "new": "**Pattern 9: Status Inversion.** Detect a status axis and invert the expected hierarchy. *Example:* \"I'm not saying it's a bad idea, sir. I'm saying it's *your* idea.\" *Embedding operation:* Identify status-marked embeddings and produce inversions that maintain surface deference while subverting hierarchy.",
   "marked": "{+**Pattern 9: Status Inversion.** Detect a status axis and invert the expected hierarchy. *Example:* \"I'm not saying it's a bad idea, sir. I'm saying it's *your* idea.\" *Embedding operation:* Identify status-marked embeddings and produce inversions that maintain surface deference while subverting hierarchy.+}"
  },
  {
   "section": "4.4 Meta-Category IV: Social and Status Dynamics",
   "old": null,
   "new": "**Pattern 10: Competent Self-Deprecation.** Acknowledge failure while implicitly demonstrating competence through the quality of the acknowledgment. *Example:* \"Yes, I sent the message to the wrong chat for the fifth time. At this rate I need GPS for WhatsApp.\" *Embedding operation:* Self-reference vector combined with failure vector, where the articulateness of the description contradicts the claimed incompetence.",
   "marked": "{+**Pattern 10: Competent Self-Deprecation.** Acknowledge failure while implicitly demonstrating competence through the quality of the acknowledgment. *Example:* \"Yes, I sent the message to the wrong chat for the fifth time. At this rate I need GPS for WhatsApp.\" *Embedding operation:* Self-reference vector combined with failure vector, where the articulateness of the description contradicts the claimed incompetence.+}"
  },
  {
   "section": "4.5 Meta-Category V: Logical and Temporal Manipulation",
   "old": null,
   "new": "## 4.5 Meta-Category V: Logical and Temporal Manipulation",
   "marked": "{+## 4.5 Meta-Category V: Logical and Temporal Manipulation+}"
  },
  {
   "section": "4.5 Meta-Category V: Logical and Temporal Manipulation",
   "old": null,
   "new": "Patterns that exploit formal reasoning or temporal incongruity.",
   "marked": "{+Patterns that exploit formal reasoning or temporal incongruity.+}"
  },
  {
   "section": "4.5 Meta-Category V: Logical and Temporal Manipulation",
   "old": null,
   "new": "**Pattern 11: Temporal Displacement.** Combine concepts from incompatible temporal contexts. *Example:* \"Cleopatra lived closer to the Moon landing than to the construction of the Great Pyramid.\" *Embedding operation:* Detect temporal metadata mismatches that violate intuitive chronological assumptions.",
   "marked": "{+**Pattern 11: Temporal Displacement.** Combine concepts from incompatible temporal contexts. *Example:* \"Cleopatra lived closer to the Moon landing than to the construction of the Great Pyramid.\" *Embedding operation:* Detect temporal metadata mismatches that violate intuitive chronological assumptions.+}"
  },
  {
   "section": "4.5 Meta-Category V: Logical and Temporal Manipulation",
   "old": null,
   "new": "**Pattern 12: Logic Applied to Absurdity.** Apply valid formal reasoning to premises that do not warrant it. *Example:* \"If *con* is the opposite of *pro*, is Congress the opposite of progress?\" *Embedding operation:* Detect morphological or etymological bridges that support formally valid but semantically absurd inferences.",
   "marked": "{+**Pattern 12: Logic Applied to Absurdity.** Apply valid formal reasoning to premises that do not warrant it. *Example:* \"If *con* is the opposite of *pro*, is Congress the opposite of progress?\" *Embedding operation:* Detect morphological or etymological bridges that support formally valid but semantically absurd inferences.+}"
  },
  {
   "section": "4.6 Pattern Interactions, Completeness, and Limitations",
   "old": null,
   "new": "## 4.6 Pattern Interactions, Completeness, and Limitations",
   "marked": "{+## 4.6 Pattern Interactions, Completeness, and Limitations+}"
  },
  {
   "section": "4.6 Pattern Interactions, Completeness, and Limitations",
   "old": null,
   "new": "These 12 patterns are not mutually exclusive. Many effective jokes combine multiple patterns — for instance, domain transfer (Pattern 7) frequently co-occurs with specificity mismatch (Pattern 6). The meta-categories reflect the primary semantic mechanism, but combinatorial humor that activates multiple patterns simultaneously may achieve higher humor potential due to multi-layered incongruity resolution.",
   "marked": "{+These 12 patterns are not mutually exclusive. Many effective jokes combine multiple patterns — for instance, domain transfer (Pattern 7) frequently co-occurs with specificity mismatch (Pattern 6). The meta-categories reflect the primary semantic mechanism, but combinatorial humor that activates multiple patterns simultaneously may achieve higher humor potential due to multi-layered incongruity resolution.+}"
  },
  {
   "section": "4.6 Pattern Interactions, Completeness, and Limitations",
   "old": null,
   "new": "**Completeness.** We do not claim the taxonomy is exhaustive. It is constrained by the operations expressible in embedding space — humor types that depend on phonological features (e.g., tonal puns in Mandarin), visual elements, or performance timing have no direct embedding-space analog. The taxonomy covers the humor mechanisms addressable by the LIMBIC framework; it is not a complete theory of humor.",
   "marked": "{+**Completeness.** We do not claim the taxonomy is exhaustive. It is constrained by the operations expressible in embedding space — humor types that depend on phonological features (e.g., tonal puns in Mandarin), visual elements, or performance timing have no direct embedding-space analog. The taxonomy covers the humor mechanisms addressable by the LIMBIC framework; it is not a complete theory of humor.+}"
  },
  {
   "section": "4.6 Pattern Interactions, Completeness, and Limitations",
   "old": null,
   "new": "**Relation to GTVH.** Our 12 patterns map primarily to the Script Opposition (SO) and Logical Mechanism (LM) Knowledge Resources of Attardo and Raskin (1991). The remaining four KRs — Situation (SI), Target (TA), Narrative Strategy (NS), and Language (LA) — are not explicitly modeled. Situation and Target are partially captured by audience modeling (Section 3.4); Narrative Strategy and Language require generation-stage control beyond the scope of this framework. A complete computational humor system would need to address all six KRs.",
   "marked": "{+**Relation to GTVH.** Our 12 patterns map primarily to the Script Opposition (SO) and Logical Mechanism (LM) Knowledge Resources of Attardo and Raskin (1991). The remaining four KRs — Situation (SI), Target (TA), Narrative Strategy (NS), and Language (LA) — are not explicitly modeled. Situation and Target are partially captured by audience modeling (Section 3.4); Narrative Strategy and Language require generation-stage control beyond the scope of this framework. A complete computational humor system would need to address all six KRs.+}"
  },
  {
   "section": "5. Ethical Constraints: Sensitivity Filtering",
   "old": null,
   "new": "# 5. Ethical Constraints: Sensitivity Filtering",
   "marked": "{+# 5. Ethical Constraints: Sensitivity Filtering+}"
  },
  {
   "section": "5.1 Motivation",
   "old": null,
   "new": "## 5.1 Motivation",
   "marked": "{+## 5.1 Motivation+}"
  },
  {
   "section": "5.1 Motivation",
   "old": null,
   "new": "The humor potential function is value-neutral — it assigns scores based on semantic geometry without regard for social harm. Since humor frequently involves transgression (McGraw & Warren, 2010), an unconstrained system will generate content that causes harm rather than laughter. We introduce **sensitivity filtering** as a pre-scoring gate.",
   "marked": "{+The humor potential function is value-neutral — it assigns scores based on semantic geometry without regard for social harm. Since humor frequently involves transgression (McGraw & Warren, 2010), an unconstrained system will generate content that causes harm rather than laughter. We introduce **sensitivity filtering** as a pre-scoring gate.+}"
  },
  {
   "section": "5.2 Sensitivity Score",
   "old": null,
   "new": "## 5.2 Sensitivity Score",
   "marked": "{+## 5.2 Sensitivity Score+}"
  },
  {
   "section": "5.2 Sensitivity Score",
   "old": null,
   "new": "Before computing humor potential, we evaluate sensitivity:",
   "marked": "{+Before computing humor potential, we evaluate sensitivity:+}"
  },
  {
   "section": "5.2 Sensitivity Score",
   "old": null,
   "new": "```python def sensitivity_score(A: str, B: str, bridge: str, audience: Audience) -> float: \"\"\"Returns 0.0 (safe) to 1.0 (highly sensitive).\"\"\" score = 0.0 SENSITIVE_CATEGORIES = { \"personal_loss\": 0.9, \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, \"religion\": 0.4 } for concept in [A, B, bridge]: for category, weight in SENSITIVE_CATEGORIES.items(): if is_semantically_related(concept, category): score = max(score, weight) if audience.recent_trauma and topic_overlaps(A, B, audience.trauma_topic): score = 1.0 # Hard block return score ```",
   "marked": "{+```python def sensitivity_score(A: str, B: str, bridge: str, audience: Audience) -> float: \"\"\"Returns 0.0 (safe) to 1.0 (highly sensitive).\"\"\" score = 0.0 SENSITIVE_CATEGORIES = { \"personal_loss\": 0.9, \"death\": 0.8, \"trauma\": 0.7, \"illness\": 0.6, \"politics\": 0.4, \"religion\": 0.4 } for concept in [A, B, bridge]: for category, weight in SENSITIVE_CATEGORIES.items(): if is_semantically_related(concept, category): score = max(score, weight) if audience.recent_trauma and topic_overlaps(A, B, audience.trauma_topic): score = 1.0 # Hard block return score ```+}"
  },
  {
   "section": "5.2 Sensitivity Score",
   "old": null,
   "new": "The function `is_semantically_related` can itself be implemented via embedding distance: a concept is related to a sensitive category if its embedding falls within a threshold distance of the category prototype embedding.",
   "marked": "{+The function `is_semantically_related` can itself be implemented via embedding distance: a concept is related to a sensitive category if its embedding falls within a threshold distance of the category prototype embedding.+}"
  },
  {
   "section": "5.3 Integration",
   "old": null,
   "new": "## 5.3 Integration",
   "marked": "{+## 5.3 Integration+}"
  },
  {
   "section": "5.3 Integration",
   "old": null,
   "new": "Sensitivity filtering precedes humor scoring:",
   "marked": "{+Sensitivity filtering precedes humor scoring:+}"
  },
  {
   "section": "5.3 Integration",
   "old": null,
   "new": "$$h_{\\text{safe}}(A, B, \\beta, \\alpha, t) = \\begin{cases} h_{\\text{ext}}(A, B, \\beta, \\alpha, t) & \\text{if } s(A, B, \\beta, \\alpha) \\leq \\tau \\\\ 0 & \\text{otherwise} \\end{cases}$$",
   "marked": "{+$$h_{\\text{safe}}(A, B, \\beta, \\alpha, t) = \\begin{cases} h_{\\text{ext}}(A, B, \\beta, \\alpha, t) & \\text{if } s(A, B, \\beta, \\alpha) \\leq \\tau \\\\ 0 & \\text{otherwise} \\end{cases}$$+}"
  },
  {
   "section": "5.3 Integration",
   "old": null,
   "new": "where $s(\\cdot)$ is the sensitivity score and $\\tau$ is a configurable threshold (default $\\tau = 0.5$). The framework permits raising $\\tau$ when context explicitly permits transgressive humor, analogous to how professional comedians negotiate audience consent for sensitive material.",
   "marked": "{+where $s(\\cdot)$ is the sensitivity score and $\\tau$ is a configurable threshold (default $\\tau = 0.5$). The framework permits raising $\\tau$ when context explicitly permits transgressive humor, analogous to how professional comedians negotiate audience consent for sensitive material.+}"
  },
  {
   "section": "5.4 Relationship to Benign Violation Theory",
   "old": null,
   "new": "## 5.4 Relationship to Benign Violation Theory",
   "marked": "{+## 5.4 Relationship to Benign Violation Theory+}"
  },
  {
   "section": "5.4 Relationship to Benign Violation Theory",
   "old": null,
   "new": "This gate operationalizes McGraw and Warren's (2010) key insight: humor requires that a violation be perceived as *benign*. The sensitivity score estimates whether a violation will be perceived as threatening rather than playful. When the score exceeds the threshold, the violation is predicted to be non-benign, and the combination is suppressed.",
   "marked": "{+This gate operationalizes McGraw and Warren's (2010) key insight: humor requires that a violation be perceived as *benign*. The sensitivity score estimates whether a violation will be perceived as threatening rather than playful. When the score exceeds the threshold, the violation is predicted to be non-benign, and the combination is suppressed.+}"
  },
  {
   "section": "5.5 Limitations of the Sensitivity Gate",
   "old": null,
   "new": "## 5.5 Limitations of the Sensitivity Gate",
   "marked": "{+## 5.5 Limitations of the Sensitivity Gate+}"
  },
  {
   "section": "5.5 Limitations of the Sensitivity Gate",
   "old": null,
   "new": "We acknowledge that sensitivity filtering is a configurable policy layer, not a solved problem. Content moderation remains an active research area with fundamental challenges including cultural context-dependence, evolving social norms, and adversarial manipulation (Gorwa et al., 2020). Our category-based approach is intentionally simple and conservative — it will produce both false positives (suppressing benign content) and false negatives (passing harmful content). The conservative default ($\\tau = 0.5$) biases toward safety at the cost of range. Production deployments should incorporate more sophisticated content safety systems as they become available.",
   "marked": "{+We acknowledge that sensitivity filtering is a configurable policy layer, not a solved problem. Content moderation remains an active research area with fundamental challenges including cultural context-dependence, evolving social norms, and adversarial manipulation (Gorwa et al., 2020). Our category-based approach is intentionally simple and conservative — it will produce both false positives (suppressing benign content) and false negatives (passing harmful content). The conservative default ($\\tau = 0.5$) biases toward safety at the cost of range. Production deployments should incorporate more sophisticated content safety systems as they become available.+}"
  },
  {
   "section": "6. Bridge Discovery Algorithms",
   "old": null,
   "new": "# 6. Bridge Discovery Algorithms",
   "marked": "{+# 6. Bridge Discovery Algorithms+}"
  },
  {
   "section": "6. Bridge Discovery Algorithms",
   "old": null,
   "new": "The humor potential function assumes the existence of a bridge concept $\\beta$. In practice, *finding* the bridge is the creative bottleneck — it is the computational analog of the comedian's craft. We first define bridge quality formally, then propose five complementary algorithms.",
   "marked": "{+The humor potential function assumes the existence of a bridge concept $\\beta$. In practice, *finding* the bridge is the creative bottleneck — it is the computational analog of the comedian's craft. We first define bridge quality formally, then propose five complementary algorithms.+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "## 6.1 Bridge Quality",
   "marked": "{+## 6.1 Bridge Quality+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "**Definition 3 (Bridge Quality).** The *quality* of a bridge $\\beta$ connecting concepts $A$ and $B$ is the product of its validity and surprise:",
   "marked": "{+**Definition 3 (Bridge Quality).** The *quality* of a bridge $\\beta$ connecting concepts $A$ and $B$ is the product of its validity and surprise:+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "$$q(\\beta, A, B) = v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$$",
   "marked": "{+$$q(\\beta, A, B) = v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$$+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "where:",
   "marked": "{+where:+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "- **Validity** $v(\\beta, A, B) = \\min(c(\\beta, A), c(\\beta, B))$ — the weakest link determines whether the bridge actually connects both concepts. - **Surprise** $\\sigma(\\beta \\mid A, B) \\in [0, 1]$ — how unexpected the bridge is given the concept pair.",
   "marked": "{+- **Validity** $v(\\beta, A, B) = \\min(c(\\beta, A), c(\\beta, B))$ — the weakest link determines whether the bridge actually connects both concepts. - **Surprise** $\\sigma(\\beta \\mid A, B) \\in [0, 1]$ — how unexpected the bridge is given the concept pair.+}"
  },
  {
   "section": "6.1 Bridge Quality",
   "old": null,
   "new": "A high-quality bridge is both *valid* (it genuinely connects both concepts) and *surprising* (it is not the obvious connection). This decomposition separates two independent dimensions of bridge quality that our pilot (Section 7.1) reveals are conflated by naive cosine coherence.",
   "marked": "{+A high-quality bridge is both *valid* (it genuinely connects both concepts) and *surprising* (it is not the obvious connection). This decomposition separates two independent dimensions of bridge quality that our pilot (Section 7.1) reveals are conflated by naive cosine coherence.+}"
  },
  {
   "section": "6.2 Embedding Arithmetic",
   "old": null,
   "new": "## 6.2 Embedding Arithmetic",
   "marked": "{+## 6.2 Embedding Arithmetic+}"
  },
  {
   "section": "6.2 Embedding Arithmetic",
   "old": null,
   "new": "Inspired by Mikolov et al.'s (2013) analogical reasoning:",
   "marked": "{+Inspired by Mikolov et al.'s (2013) analogical reasoning:+}"
  },
  {
   "section": "6.2 Embedding Arithmetic",
   "old": null,
   "new": "$$\\beta_{\\text{candidate}} = \\vec{A} - \\vec{\\text{context}_A} + \\vec{\\text{context}_B}$$",
   "marked": "{+$$\\beta_{\\text{candidate}} = \\vec{A} - \\vec{\\text{context}_A} + \\vec{\\text{context}_B}$$+}"
  },
  {
   "section": "6.2 Embedding Arithmetic",
   "old": null,
   "new": "where $\\vec{\\text{context}_X}$ is the centroid of $X$'s typical semantic neighborhood (computed as the mean of $X$'s top-$m$ nearest neighbors in the embedding index, with $m = 10$ as default). This removes $A$'s expected associations and injects $B$'s frame, producing a vector that bridges both contexts. The nearest neighbor to $\\beta_{\\text{candidate}}$ in the embedding index serves as the bridge.",
   "marked": "{+where $\\vec{\\text{context}_X}$ is the centroid of $X$'s typical semantic neighborhood (computed as the mean of $X$'s top-$m$ nearest neighbors in the embedding index, with $m = 10$ as default). This removes $A$'s expected associations and injects $B$'s frame, producing a vector that bridges both contexts. The nearest neighbor to $\\beta_{\\text{candidate}}$ in the embedding index serves as the bridge.+}"
  },
  {
   "section": "6.2 Embedding Arithmetic",
   "old": null,
   "new": "**Complexity:** $O(n + k \\log N)$ where $n$ is embedding dimension, $k$ is the number of nearest neighbors retrieved, and $N$ is index size. With approximate nearest neighbor (ANN) indices, this is effectively $O(n)$.",
   "marked": "{+**Complexity:** $O(n + k \\log N)$ where $n$ is embedding dimension, $k$ is the number of nearest neighbors retrieved, and $N$ is index size. With approximate nearest neighbor (ANN) indices, this is effectively $O(n)$.+}"
  },
  {
   "section": "6.3 Orthogonal Search (Equilateral Triangle)",
   "old": null,
   "new": "## 6.3 Orthogonal Search (Equilateral Triangle)",
   "marked": "{+## 6.3 Orthogonal Search (Equilateral Triangle)+}"
  },
  {
   "section": "6.3 Orthogonal Search (Equilateral Triangle)",
   "old": null,
   "new": "Search for concepts $C$ that are equidistant from both $A$ and $B$ but maximally offset from the $A$–$B$ axis:",
   "marked": "{+Search for concepts $C$ that are equidistant from both $A$ and $B$ but maximally offset from the $A$–$B$ axis:+}"
  },
  {
   "section": "6.3 Orthogonal Search (Equilateral Triangle)",
   "old": null,
   "new": "$$\\beta^* = \\arg\\max_{C} \\; c(C, A) \\cdot c(C, B) \\cdot \\text{ortho}(C, A, B)$$",
   "marked": "{+$$\\beta^* = \\arg\\max_{C} \\; c(C, A) \\cdot c(C, B) \\cdot \\text{ortho}(C, A, B)$$+}"
  },
  {
   "section": "6.3 Orthogonal Search (Equilateral Triangle)",
   "old": null,
   "new": "where $\\text{ortho}(C, A, B)$ measures the perpendicular distance of $C$ from the line connecting $A$ and $B$ in embedding space. The midpoint between \"meeting\" and \"hostage situation\" yields \"negotiation\" (obvious); an orthogonal candidate might yield \"Stockholm syndrome\" (funnier because unexpected).",
   "marked": "{+where $\\text{ortho}(C, A, B)$ measures the perpendicular distance of $C$ from the line connecting $A$ and $B$ in embedding space. The midpoint between \"meeting\" and \"hostage situation\" yields \"negotiation\" (obvious); an orthogonal candidate might yield \"Stockholm syndrome\" (funnier because unexpected).+}"
  },
  {
   "section": "6.3 Orthogonal Search (Equilateral Triangle)",
   "old": null,
   "new": "**Complexity:** $O(k \\cdot n)$ for $k$ candidates, dominated by nearest-neighbor retrieval.",
   "marked": "{+**Complexity:** $O(k \\cdot n)$ for $k$ candidates, dominated by nearest-neighbor retrieval.+}"
  },
  {
   "section": "6.4 Frame Injection",
   "old": null,
   "new": "## 6.4 Frame Injection",
   "marked": "{+## 6.4 Frame Injection+}"
  },
  {
   "section": "6.4 Frame Injection",
   "old": null,
   "new": "Extract the semantic frame of concept $A$ (its typical verbs, attributes, and relations) and forcibly apply it to concept $B$:",
   "marked": "{+Extract the semantic frame of concept $A$ (its typical verbs, attributes, and relations) and forcibly apply it to concept $B$:+}"
  },
  {
   "section": "6.4 Frame Injection",
   "old": null,
   "new": "1. Extract $A$'s frame: $\\{$verbs: [estimate, review, block], attrs: [velocity, story\\_points]$\\}$ 2. Apply frame to $B$: \"The lasagna has 5 story points and is blocked by missing cheese.\"",
   "marked": "{+1. Extract $A$'s frame: $\\{$verbs: [estimate, review, block], attrs: [velocity, story\\_points]$\\}$ 2. Apply frame to $B$: \"The lasagna has 5 story points and is blocked by missing cheese.\"+}"
  },
  {
   "section": "6.4 Frame Injection",
   "old": null,
   "new": "Frame extraction can use FrameNet (Baker et al., 1998) for coverage of ~1,200 frames, or LLM-based extraction for broader coverage. The choice depends on the deployment context: FrameNet provides deterministic, well-structured output; LLM extraction provides broader coverage at the cost of nondeterminism.",
   "marked": "{+Frame extraction can use FrameNet (Baker et al., 1998) for coverage of ~1,200 frames, or LLM-based extraction for broader coverage. The choice depends on the deployment context: FrameNet provides deterministic, well-structured output; LLM extraction provides broader coverage at the cost of nondeterminism.+}"
  },
  {
   "section": "6.4 Frame Injection",
   "old": null,
   "new": "**Complexity:** $O(F + G)$ where $F$ is frame extraction cost and $G$ is generation cost. With cached frames, $F \\approx 0$.",
   "marked": "{+**Complexity:** $O(F + G)$ where $F$ is frame extraction cost and $G$ is generation cost. With cached frames, $F \\approx 0$.+}"
  },
  {
   "section": "6.5 Generate-then-Score Pipeline",
   "old": null,
   "new": "## 6.5 Generate-then-Score Pipeline",
   "marked": "{+## 6.5 Generate-then-Score Pipeline+}"
  },
  {
   "section": "6.5 Generate-then-Score Pipeline",
   "old": null,
   "new": "Separate creativity from evaluation by generating candidate bridges with a language model and scoring them with the humor potential function:",
   "marked": "{+Separate creativity from evaluation by generating candidate bridges with a language model and scoring them with the humor potential function:+}"
  },
  {
   "section": "6.5 Generate-then-Score Pipeline",
   "old": null,
   "new": "$$\\text{GENERATE}(50 \\text{ candidates}) \\rightarrow \\text{EMBED} \\rightarrow \\text{SCORE}(h_{\\text{v2}}) \\rightarrow \\text{RANK}(\\text{top } 5)$$",
   "marked": "{+$$\\text{GENERATE}(50 \\text{ candidates}) \\rightarrow \\text{EMBED} \\rightarrow \\text{SCORE}(h_{\\text{v2}}) \\rightarrow \\text{RANK}(\\text{top } 5)$$+}"
  },
  {
   "section": "6.5 Generate-then-Score Pipeline",
   "old": null,
   "new": "This leverages the LLM's associative breadth while using our formula for principled selection. A small, fast model suffices for generation since quality filtering is deferred to the scoring stage. The generation prompt requests diverse bridge concepts connecting $A$ and $B$, with explicit instructions for variety across the 12 pattern types.",
   "marked": "{+This leverages the LLM's associative breadth while using our formula for principled selection. A small, fast model suffices for generation since quality filtering is deferred to the scoring stage. The generation prompt requests diverse bridge concepts connecting $A$ and $B$, with explicit instructions for variety across the 12 pattern types.+}"
  },
  {
   "section": "6.5 Generate-then-Score Pipeline",
   "old": null,
   "new": "**Complexity:** Dominated by LLM inference, typically $O(500\\text{ms})$ for 50 candidates with a small model.",
   "marked": "{+**Complexity:** Dominated by LLM inference, typically $O(500\\text{ms})$ for 50 candidates with a small model.+}"
  },
  {
   "section": "6.6 Pre-computed Bridge Index",
   "old": null,
   "new": "## 6.6 Pre-computed Bridge Index",
   "marked": "{+## 6.6 Pre-computed Bridge Index+}"
  },
  {
   "section": "6.6 Pre-computed Bridge Index",
   "old": null,
   "new": "Maintain a curated index of **universal bridge concepts** — concepts with high bridging potential across many domain pairs (e.g., \"bureaucracy,\" \"therapy,\" \"startup culture\"). Each bridge carries pre-computed affinity weights indicating compatibility with target domains:",
   "marked": "{+Maintain a curated index of **universal bridge concepts** — concepts with high bridging potential across many domain pairs (e.g., \"bureaucracy,\" \"therapy,\" \"startup culture\"). Each bridge carries pre-computed affinity weights indicating compatibility with target domains:+}"
  },
  {
   "section": "6.6 Pre-computed Bridge Index",
   "old": null,
   "new": "```python BRIDGE_INDEX = { \"bureaucracy\": { \"terms\": [\"approval\", \"committee\", \"form\"], \"affinities\": {\"food\": 0.8, \"medicine\": 0.9, \"nature\": 0.4} } } ```",
   "marked": "{+```python BRIDGE_INDEX = { \"bureaucracy\": { \"terms\": [\"approval\", \"committee\", \"form\"], \"affinities\": {\"food\": 0.8, \"medicine\": 0.9, \"nature\": 0.4} } } ```+}"
  },
  {
   "section": "6.6 Pre-computed Bridge Index",
   "old": null,
   "new": "Index construction: Initialize with a seed set of ~100 frequently effective bridge concepts (identified from joke corpora such as the 16,000 One-Liners dataset; Mihalcea & Strapparava, 2005). Expand iteratively by analyzing which concepts serve as bridges in successful humor associations (Section 8). Prune concepts whose bridging success rate falls below a threshold.",
   "marked": "{+Index construction: Initialize with a seed set of ~100 frequently effective bridge concepts (identified from joke corpora such as the 16,000 One-Liners dataset; Mihalcea & Strapparava, 2005). Expand iteratively by analyzing which concepts serve as bridges in successful humor associations (Section 8). Prune concepts whose bridging success rate falls below a threshold.+}"
  },
  {
   "section": "6.6 Pre-computed Bridge Index",
   "old": null,
   "new": "**Complexity:** $O(|B| \\cdot |T|)$ where $|B|$ is bridge index size and $|T|$ is number of terms per bridge. With hashing, effectively $O(1)$ lookup.",
   "marked": "{+**Complexity:** $O(|B| \\cdot |T|)$ where $|B|$ is bridge index size and $|T|$ is number of terms per bridge. With hashing, effectively $O(1)$ lookup.+}"
  },
  {
   "section": "6.7 Hybrid Pipeline",
   "old": null,
   "new": "## 6.7 Hybrid Pipeline",
   "marked": "{+## 6.7 Hybrid Pipeline+}"
  },
  {
   "section": "6.7 Hybrid Pipeline",
   "old": null,
   "new": "In practice, we recommend a cascading pipeline that trades off speed against creativity:",
   "marked": "{+In practice, we recommend a cascading pipeline that trades off speed against creativity:+}"
  },
  {
   "section": "6.7 Hybrid Pipeline",
   "old": null,
   "new": "``` INPUT: (A, B) | +-> Bridge Index (5ms) --------+ +-> Embedding Arithmetic (50ms) --+ +-> Frame Injection (100ms) ----+ | Candidate Pool | Sensitivity Gate (20ms) | Score with h_v2(A, B, beta) | Top 3 Bridges (by bridge quality q) | [Fallback: LLM generation (500ms)] ```",
   "marked": "{+``` INPUT: (A, B) | +-> Bridge Index (5ms) --------+ +-> Embedding Arithmetic (50ms) --+ +-> Frame Injection (100ms) ----+ | Candidate Pool | Sensitivity Gate (20ms) | Score with h_v2(A, B, beta) | Top 3 Bridges (by bridge quality q) | [Fallback: LLM generation (500ms)] ```+}"
  },
  {
   "section": "6.7 Hybrid Pipeline",
   "old": null,
   "new": "The LLM fallback activates only when the faster methods fail to produce candidates above a minimum bridge quality threshold ($q_{\\min}$). Total latency: 75–175ms typical, 675ms worst case. These estimates assume a warm ANN index (HNSW or FAISS IVF) with ~100K concepts in RAM on GPU-accelerated or optimized CPU infrastructure; cold-start adds ~200ms for index loading. CPU-only deployments may see 2–3× higher latency for the ANN queries.",
   "marked": "{+The LLM fallback activates only when the faster methods fail to produce candidates above a minimum bridge quality threshold ($q_{\\min}$). Total latency: 75–175ms typical, 675ms worst case. These estimates assume a warm ANN index (HNSW or FAISS IVF) with ~100K concepts in RAM on GPU-accelerated or optimized CPU infrastructure; cold-start adds ~200ms for index loading. CPU-only deployments may see 2–3× higher latency for the ANN queries.+}"
  },
  {
   "section": "7. Empirical Methodology and Pilot Results",
   "old": null,
   "new": "# 7. Empirical Methodology and Pilot Results",
   "marked": "{+# 7. Empirical Methodology and Pilot Results+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "## 7.1 Preliminary Computational Pilot",
   "marked": "{+## 7.1 Preliminary Computational Pilot+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "We conducted a small-scale computational pilot to test whether $h(A, B, \\beta)$ discriminates between humorous and non-humorous concept combinations. This pilot tests the *formula* against known-funny and known-unfunny concept triplets — it is not a human rating study.",
   "marked": "{+We conducted a small-scale computational pilot to test whether $h(A, B, \\beta)$ discriminates between humorous and non-humorous concept combinations. This pilot tests the *formula* against known-funny and known-unfunny concept triplets — it is not a human rating study.+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "**Setup.** Using `all-MiniLM-L6-v2` (384-dimensional sentence embeddings via SentenceTransformers; Reimers & Gurevych, 2019), we scored $n = 15$ concept triplets: 5 from established jokes (known-funny), 5 from obvious/boring pairings (known-unfunny), and 5 from random incoherent combinations (random). Each triplet consists of (concept A, concept B, bridge concept).",
   "marked": "{+**Setup.** Using `all-MiniLM-L6-v2` (384-dimensional sentence embeddings via SentenceTransformers; Reimers & Gurevych, 2019), we scored $n = 15$ concept triplets: 5 from established jokes (known-funny), 5 from obvious/boring pairings (known-unfunny), and 5 from random incoherent combinations (random). Each triplet consists of (concept A, concept B, bridge concept).+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "**Formula variants tested.** We explored four variants to understand the formula's behavior:",
   "marked": "{+**Formula variants tested.** We explored four variants to understand the formula's behavior:+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "| Variant | Formula | Motivation | |---------|---------|------------| | $h_{\\text{v1}}$ (original) | $d(A,B) \\cdot c(\\beta, A) \\cdot c(\\beta, B)$ | Direct bisociation formalization | | $h_{\\text{v2}}$ (surprise-weighted) | $d(A,B) \\cdot v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$ | Separates validity from surprise | | $h_{\\text{v3}}$ (harmonic bridge) | $d(A,B) \\cdot \\frac{2 \\cdot c(\\beta, A) \\cdot c(\\beta, B)}{c(\\beta, A) + c(\\beta, B)}$ | Penalizes asymmetric bridges | | $h_{\\text{v4}}$ (average bridge) | $d(A,B) \\cdot \\frac{c(\\beta, A) + c(\\beta, B)}{2}$ | Additive bridge quality |",
   "marked": "{+| Variant | Formula | Motivation | |---------|---------|------------| | $h_{\\text{v1}}$ (original) | $d(A,B) \\cdot c(\\beta, A) \\cdot c(\\beta, B)$ | Direct bisociation formalization | | $h_{\\text{v2}}$ (surprise-weighted) | $d(A,B) \\cdot v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$ | Separates validity from surprise | | $h_{\\text{v3}}$ (harmonic bridge) | $d(A,B) \\cdot \\frac{2 \\cdot c(\\beta, A) \\cdot c(\\beta, B)}{c(\\beta, A) + c(\\beta, B)}$ | Penalizes asymmetric bridges | | $h_{\\text{v4}}$ (average bridge) | $d(A,B) \\cdot \\frac{c(\\beta, A) + c(\\beta, B)}{2}$ | Additive bridge quality |+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "**Results:**",
   "marked": "{+**Results:**+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "| Category | $n$ | $h_{\\text{v1}}$ (original) | $h_{\\text{v3}}$ (harmonic) | $h_{\\text{v4}}$ (avg bridge) | |----------|-----|---------------------------|---------------------------|------------------------------| | Funny | 5 | 0.019 | 0.089 | 0.126 | | Unfunny | 5 | 0.088 | 0.164 | 0.165 | | Random | 5 | 0.033 | 0.160 | 0.178 | | Funny/Unfunny ratio | — | 0.22x | 0.54x | 0.76x |",
   "marked": "{+| Category | $n$ | $h_{\\text{v1}}$ (original) | $h_{\\text{v3}}$ (harmonic) | $h_{\\text{v4}}$ (avg bridge) | |----------|-----|---------------------------|---------------------------|------------------------------| | Funny | 5 | 0.019 | 0.089 | 0.126 | | Unfunny | 5 | 0.088 | 0.164 | 0.165 | | Random | 5 | 0.033 | 0.160 | 0.178 | | Funny/Unfunny ratio | — | 0.22x | 0.54x | 0.76x |+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "*Table 2: Pilot study results across formula variants. Across all variants tested, unfunny pairs score higher than funny pairs, indicating that naive coherence (cosine similarity) conflates semantic proximity with comedic validity. $h_{\\text{v2}}$ was not evaluated in this pilot (it was formulated in response to these results).*",
   "marked": "{+*Table 2: Pilot study results across formula variants. Across all variants tested, unfunny pairs score higher than funny pairs, indicating that naive coherence (cosine similarity) conflates semantic proximity with comedic validity. $h_{\\text{v2}}$ was not evaluated in this pilot (it was formulated in response to these results).*+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "**Key finding: The tested formulas do not predict humor.** Unfunny pairs consistently outscore funny pairs because $c(\\beta, A) \\cdot c(\\beta, B)$ rewards *obvious* connections — high similarity between bridge and both concepts — while humor requires connections that are *surprising yet valid*.",
   "marked": "{+**Key finding: The tested formulas do not predict humor.** Unfunny pairs consistently outscore funny pairs because $c(\\beta, A) \\cdot c(\\beta, B)$ rewards *obvious* connections — high similarity between bridge and both concepts — while humor requires connections that are *surprising yet valid*.+}"
  },
  {
   "section": "7.1 Preliminary Computational Pilot",
   "old": null,
   "new": "**Diagnosis.** The formula conflates semantic proximity with comedic coherence. When someone says \"meetings are like hostage situations — you're held against your will,\" the humor arises not from how close \"held against your will\" is to \"meeting\" in embedding space (it is not close), but from how *unexpectedly valid* the connection is. Surprise $\\times$ validity $\\neq$ similarity $\\times$ similarity.",
   "marked": "{+**Diagnosis.** The formula conflates semantic proximity with comedic coherence. When someone says \"meetings are like hostage situations — you're held against your will,\" the humor arises not from how close \"held against your will\" is to \"meeting\" in embedding space (it is not close), but from how *unexpectedly valid* the connection is. Surprise $\\times$ validity $\\neq$ similarity $\\times$ similarity.+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "### 7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "marked": "{+### 7.1.1 Revised Formulation: Surprise-Weighted Humor Potential+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "The negative result motivates decomposing bridge quality into two independent factors:",
   "marked": "{+The negative result motivates decomposing bridge quality into two independent factors:+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "$$h_{\\text{v2}}(A, B, \\beta) = d(A, B) \\cdot v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$$",
   "marked": "{+$$h_{\\text{v2}}(A, B, \\beta) = d(A, B) \\cdot v(\\beta, A, B) \\cdot \\sigma(\\beta \\mid A, B)$$+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "where validity $v$ and surprise $\\sigma$ are as defined in Definition 3 (Section 6.1). The surprise component requires further specification:",
   "marked": "{+where validity $v$ and surprise $\\sigma$ are as defined in Definition 3 (Section 6.1). The surprise component requires further specification:+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "**Operationalizing surprise via reciprocal rank.** We define $\\sigma$ as the reciprocal rank of the bridge concept in the neighbor list of the midpoint of $A$ and $B$:",
   "marked": "{+**Operationalizing surprise via reciprocal rank.** We define $\\sigma$ as the reciprocal rank of the bridge concept in the neighbor list of the midpoint of $A$ and $B$:+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "```python def surprise(bridge_vec, A_vec, B_vec, index, k=100): \"\"\" Surprise as reciprocal rank in the neighbor list of midpoint(A, B). rank 1 -> expected (surprise ~ 0.0) rank 80 -> surprising (surprise ~ 0.8) not in top-k -> maximally surprising (surprise = 1.0)",
   "marked": "{+```python def surprise(bridge_vec, A_vec, B_vec, index, k=100): \"\"\" Surprise as reciprocal rank in the neighbor list of midpoint(A, B). rank 1 -> expected (surprise ~ 0.0) rank 80 -> surprising (surprise ~ 0.8) not in top-k -> maximally surprising (surprise = 1.0)+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "k controls the resolution of the surprise estimate. Sensitivity: - k=50: coarser granularity, faster lookup, fewer false \"maximally surprising\" - k=100 (default): balanced resolution for vocabularies of 10K-100K concepts - k=200: finer granularity, useful for very large concept spaces (>100K) The choice of k should scale as O(sqrt(N)) where N is the concept index size. \"\"\" midpoint = (A_vec + B_vec) / 2 neighbors = index.query(midpoint, k=k) for rank, (neighbor_id, _) in enumerate(neighbors): if neighbor_id == bridge_id: return rank / k return 1.0 ```",
   "marked": "{+k controls the resolution of the surprise estimate. Sensitivity: - k=50: coarser granularity, faster lookup, fewer false \"maximally surprising\" - k=100 (default): balanced resolution for vocabularies of 10K-100K concepts - k=200: finer granularity, useful for very large concept spaces (>100K) The choice of k should scale as O(sqrt(N)) where N is the concept index size. \"\"\" midpoint = (A_vec + B_vec) / 2 neighbors = index.query(midpoint, k=k) for rank, (neighbor_id, _) in enumerate(neighbors): if neighbor_id == bridge_id: return rank / k return 1.0 ```+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "**Justification.** Reciprocal rank approximates information-theoretic surprise $-\\log P(\\beta \\mid A, B)$ without requiring explicit density estimation. If $\\beta$ is a highly-ranked neighbor of the midpoint, it is a \"predictable\" bridge (low information content, low surprise); if $\\beta$ is absent from the top-$k$ neighbors, it is maximally surprising (high information content). This non-parametric approach avoids the difficulty of estimating $P(\\beta \\mid A, B)$ directly, which would require a generative model of bridge concepts. Future work could explore explicit density-based surprise metrics (e.g., using normalizing flows or kernel density estimation over the embedding space), but reciprocal rank provides a tractable starting point with clear interpretability.",
   "marked": "{+**Justification.** Reciprocal rank approximates information-theoretic surprise $-\\log P(\\beta \\mid A, B)$ without requiring explicit density estimation. If $\\beta$ is a highly-ranked neighbor of the midpoint, it is a \"predictable\" bridge (low information content, low surprise); if $\\beta$ is absent from the top-$k$ neighbors, it is maximally surprising (high information content). This non-parametric approach avoids the difficulty of estimating $P(\\beta \\mid A, B)$ directly, which would require a generative model of bridge concepts. Future work could explore explicit density-based surprise metrics (e.g., using normalizing flows or kernel density estimation over the embedding space), but reciprocal rank provides a tractable starting point with clear interpretability.+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "**Intuition.** An obvious bridge (e.g., \"small feline\" for cat–kitten) ranks highly among midpoint neighbors and receives low surprise. An unexpected bridge (e.g., \"held against your will\" for meeting–hostage situation) ranks low or is absent from midpoint neighbors, receiving high surprise. Validity ensures the bridge is still *meaningful*; surprise ensures it is *unexpected*. Their product captures the \"aha\" moment of humor.",
   "marked": "{+**Intuition.** An obvious bridge (e.g., \"small feline\" for cat–kitten) ranks highly among midpoint neighbors and receives low surprise. An unexpected bridge (e.g., \"held against your will\" for meeting–hostage situation) ranks low or is absent from midpoint neighbors, receiving high surprise. Validity ensures the bridge is still *meaningful*; surprise ensures it is *unexpected*. Their product captures the \"aha\" moment of humor.+}"
  },
  {
   "section": "7.1.1 Revised Formulation: Surprise-Weighted Humor Potential",
   "old": null,
   "new": "**Information-theoretic interpretation.** The surprise component $\\sigma$ approximates the *self-information* (Shannon information content) of the bridge given the concept pair. Formally, if $P(\\beta \\mid A, B)$ is the probability of $\\beta$ being the \"expected\" connector between $A$ and $B$, then the information-theoretic surprise is $I(\\beta \\mid A, B) = -\\log_2 P(\\beta \\mid A, B)$. Our reciprocal rank approximation estimates this non-parametrically: the rank of $\\beta$ in the midpoint neighbor list serves as an ordinal proxy for $P(\\beta \\mid A, B)$, with low rank corresponding to high probability (low surprise) and high rank corresponding to low probability (high surprise). The normalization to $[0, 1]$ via $\\text{rank}/k$ maps the ordinal measure to a scale compatible with the multiplicative structure of $h$.",
   "marked": "{+**Information-theoretic interpretation.** The surprise component $\\sigma$ approximates the *self-information* (Shannon information content) of the bridge given the concept pair. Formally, if $P(\\beta \\mid A, B)$ is the probability of $\\beta$ being the \"expected\" connector between $A$ and $B$, then the information-theoretic surprise is $I(\\beta \\mid A, B) = -\\log_2 P(\\beta \\mid A, B)$. Our reciprocal rank approximation estimates this non-parametrically: the rank of $\\beta$ in the midpoint neighbor list serves as an ordinal proxy for $P(\\beta \\mid A, B)$, with low rank corresponding to high probability (low surprise) and high rank corresponding to low probability (high surprise). The normalization to $[0, 1]$ via $\\text{rank}/k$ maps the ordinal measure to a scale compatible with the multiplicative structure of $h$.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "### 7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "marked": "{+### 7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "To build intuition for how $h_{\\text{v2}}$ addresses the failure of $h_{\\text{v1}}$, we re-score two triplets from the pilot using the revised formula.",
   "marked": "{+To build intuition for how $h_{\\text{v2}}$ addresses the failure of $h_{\\text{v1}}$, we re-score two triplets from the pilot using the revised formula.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "**Funny triplet: (meeting, hostage situation, \"held against your will\").**",
   "marked": "{+**Funny triplet: (meeting, hostage situation, \"held against your will\").**+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "- $d(\\text{meeting}, \\text{hostage situation}) = 0.75$ (distant — good). - $v = \\min(c(\\beta, \\text{meeting}), c(\\beta, \\text{hostage})) = \\min(0.21, 0.27) = 0.21$ (low but nonzero — the bridge is a valid but weak connector). - $\\sigma$: \"Held against your will\" does not appear in the top-100 neighbors of the midpoint of \"meeting\" and \"hostage situation.\" Thus $\\sigma = 1.0$ (maximally surprising). - $h_{\\text{v2}} = 0.75 \\times 0.21 \\times 1.0 = 0.158$.",
   "marked": "{+- $d(\\text{meeting}, \\text{hostage situation}) = 0.75$ (distant — good). - $v = \\min(c(\\beta, \\text{meeting}), c(\\beta, \\text{hostage})) = \\min(0.21, 0.27) = 0.21$ (low but nonzero — the bridge is a valid but weak connector). - $\\sigma$: \"Held against your will\" does not appear in the top-100 neighbors of the midpoint of \"meeting\" and \"hostage situation.\" Thus $\\sigma = 1.0$ (maximally surprising). - $h_{\\text{v2}} = 0.75 \\times 0.21 \\times 1.0 = 0.158$.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "**Unfunny triplet: (cat, kitten, \"small feline\").**",
   "marked": "{+**Unfunny triplet: (cat, kitten, \"small feline\").**+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "- $d(\\text{cat}, \\text{kitten}) = 0.21$ (close — low incongruity). - $v = \\min(0.56, 0.58) = 0.56$ (high — bridge is strongly connected). - $\\sigma$: \"Small feline\" appears at rank 3 in the midpoint neighbors. $\\sigma = 3/100 = 0.03$ (minimally surprising). - $h_{\\text{v2}} = 0.21 \\times 0.56 \\times 0.03 = 0.004$.",
   "marked": "{+- $d(\\text{cat}, \\text{kitten}) = 0.21$ (close — low incongruity). - $v = \\min(0.56, 0.58) = 0.56$ (high — bridge is strongly connected). - $\\sigma$: \"Small feline\" appears at rank 3 in the midpoint neighbors. $\\sigma = 3/100 = 0.03$ (minimally surprising). - $h_{\\text{v2}} = 0.21 \\times 0.56 \\times 0.03 = 0.004$.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "**Result.** Under $h_{\\text{v2}}$, the funny triplet scores $0.158$ versus $0.004$ for the unfunny triplet — a 40:1 ratio favoring humor. Under $h_{\\text{v1}}$, the unfunny triplet scored *higher* ($0.068$ vs. $0.043$). The surprise component is the critical correction: it penalizes obvious bridges severely while rewarding unexpected ones.",
   "marked": "{+**Result.** Under $h_{\\text{v2}}$, the funny triplet scores $0.158$ versus $0.004$ for the unfunny triplet — a 40:1 ratio favoring humor. Under $h_{\\text{v1}}$, the unfunny triplet scored *higher* ($0.068$ vs. $0.043$). The surprise component is the critical correction: it penalizes obvious bridges severely while rewarding unexpected ones.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "**Caveat.** This worked example uses the original pilot embeddings and approximate midpoint neighbor ranks. It demonstrates the *mechanism* by which $h_{\\text{v2}}$ addresses $h_{\\text{v1}}$'s failure, not a validated prediction. Formal validation requires the human rating protocol in Section 7.2.",
   "marked": "{+**Caveat.** This worked example uses the original pilot embeddings and approximate midpoint neighbor ranks. It demonstrates the *mechanism* by which $h_{\\text{v2}}$ addresses $h_{\\text{v1}}$'s failure, not a validated prediction. Formal validation requires the human rating protocol in Section 7.2.+}"
  },
  {
   "section": "7.1.2 Worked Example: $h_{\\text{v2}}$ on Pilot Triplets",
   "old": null,
   "new": "**Status.** This revised formula is a hypothesis motivated by the pilot's negative results. Validation against human ratings is required before claims of predictive power can be made. We present specific protocols in Section 7.2.",
   "marked": "{+**Status.** This revised formula is a hypothesis motivated by the pilot's negative results. Validation against human ratings is required before claims of predictive power can be made. We present specific protocols in Section 7.2.+}"
  },
  {
   "section": "7.1.3 Significance of the Negative Result",
   "old": null,
   "new": "### 7.1.3 Significance of the Negative Result",
   "marked": "{+### 7.1.3 Significance of the Negative Result+}"
  },
  {
   "section": "7.1.3 Significance of the Negative Result",
   "old": null,
   "new": "The falsification of $h_{\\text{v1}}$ (and $h_{\\text{v3}}$, $h_{\\text{v4}}$) is itself a contribution. It demonstrates that the naive mapping of bisociation to embedding distance $\\times$ cosine similarity is insufficient, and identifies the specific failure mode: conflation of proximity with comedic validity. This finding should inform future work on embedding-based humor metrics — any formula relying solely on cosine similarity to measure bridge quality will face the same failure.",
   "marked": "{+The falsification of $h_{\\text{v1}}$ (and $h_{\\text{v3}}$, $h_{\\text{v4}}$) is itself a contribution. It demonstrates that the naive mapping of bisociation to embedding distance $\\times$ cosine similarity is insufficient, and identifies the specific failure mode: conflation of proximity with comedic validity. This finding should inform future work on embedding-based humor metrics — any formula relying solely on cosine similarity to measure bridge quality will face the same failure.+}"
  },
  {
   "section": "7.1.3 Significance of the Negative Result",
   "old": null,
   "new": "The systematic exploration of four variants (v1–v4) rules out obvious fixes: neither harmonic means (v3) nor averaging (v4) resolves the fundamental issue. The problem is not in how coherence values are combined but in what they measure — proximity is not the same as comedic connection.",
   "marked": "{+The systematic exploration of four variants (v1–v4) rules out obvious fixes: neither harmonic means (v3) nor averaging (v4) resolves the fundamental issue. The problem is not in how coherence values are combined but in what they measure — proximity is not the same as comedic connection.+}"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "## 7.2 Proposed Full Validation Protocol",
   "marked": "{+## 7.2 Proposed Full Validation Protocol+}"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "**Hypothesis.** The revised $h_{\\text{v2}}$ incorporating surprise-weighted coherence will correlate positively with human funniness ratings where $h_{\\text{v1}}$ does not.",
   "marked": "{+**Hypothesis.** The revised $h_{\\text{v2}}$ incorporating surprise-weighted coherence will correlate positively with human funniness ratings where $h_{\\text{v1}}$ does not.+}"
  },
  {
   "section": "8.1 Experimental Design (Full Validation)",
   "old": "1. **Generate:** Create 100 jokes using the hybrid pipeline across diverse concept pairs 2. **Score:** Compute `humor_potential` for each joke 3. **Survey:** Present jokes to N ≥ 50 human raters (randomized order, no context) 4. **Rate:** Collect funniness ratings (1-5 Likert scale) 5. **Correlate:** Compute Pearson's r between `humor_potential` and mean human rating",
   "new": null,
   "marked": "[-1. **Generate:** Create 100 jokes using the hybrid pipeline across diverse concept pairs 2. **Score:** Compute `humor_potential` for each joke 3. **Survey:** Present jokes to N ≥ 50 human raters (randomized order, no context) 4. **Rate:** Collect funniness ratings (1-5 Likert scale) 5. **Correlate:** Compute Pearson's r between `humor_potential` and mean human rating-]"
  },
  {
   "section": "8.1 Experimental Design (Full Validation)",
   "old": "**Success criteria:** - r > 0.6 → Strong validation (publish) - r > 0.4 → Moderate validation (iterate equation) - r < 0.4 → Weak validation (fundamental rethink)",
   "new": null,
   "marked": "[-**Success criteria:** - r > 0.6 → Strong validation (publish) - r > 0.4 → Moderate validation (iterate equation) - r < 0.4 → Weak validation (fundamental rethink)-]"
  },
  {
   "section": "7.2 Control Variables",
   "old": "### 7.2 Control Variables",
   "new": null,
   "marked": "[-### 7.2 Control Variables-]"
  },
  {
   "section": "7.2 Control Variables",
   "old": "- **Audience segmentation:** Rate by demographics (age, culture, profession) - **Pattern type:** Does correlation vary by which of the 12 patterns is used? - **Familiarity effect:** Test with `familiarity(audience)` known vs unknown",
   "new": null,
   "marked": "[-- **Audience segmentation:** Rate by demographics (age, culture, profession) - **Pattern type:** Does correlation vary by which of the 12 patterns is used? - **Familiarity effect:** Test with `familiarity(audience)` known vs unknown-]"
  },
  {
   "section": "7.3 A/B Testing for Callback Bonus",
   "old": "### 7.3 A/B Testing for Callback Bonus",
   "new": null,
   "marked": "[-### 7.3 A/B Testing for Callback Bonus-]"
  },
  {
   "section": "7.3 A/B Testing for Callback Bonus",
   "old": "Specific test for §2.3's temporal decay function:",
   "new": null,
   "marked": "[-Specific test for §2.3's temporal decay function:-]"
  },
  {
   "section": "7.3 A/B Testing for Callback Bonus",
   "old": "1. Generate callbacks at different time intervals (1 day, 1 week, 1 month, 6 months, 1 year) 2. Rate with audience who experienced the original event vs naive audience 3. Validate the decay curve shape",
   "new": null,
   "marked": "[-1. Generate callbacks at different time intervals (1 day, 1 week, 1 month, 6 months, 1 year) 2. Rate with audience who experienced the original event vs naive audience 3. Validate the decay curve shape-]"
  },
  {
   "section": "7.4 Sensitivity Gate Validation",
   "old": "### 7.4 Sensitivity Gate Validation",
   "new": null,
   "marked": "[-### 7.4 Sensitivity Gate Validation-]"
  },
  {
   "section": "7.4 Sensitivity Gate Validation",
   "old": "Test that blocked content (sensitivity > threshold) would indeed have received negative reactions:",
   "new": null,
   "marked": "[-Test that blocked content (sensitivity > threshold) would indeed have received negative reactions:-]"
  },
  {
   "section": "7.4 Sensitivity Gate Validation",
   "old": "1. Generate jokes that WOULD be blocked by sensitivity gate 2. Rate with consenting audience (ethics board approval required) 3. Confirm that blocked jokes receive negative or uncomfortable ratings",
   "new": null,
   "marked": "[-1. Generate jokes that WOULD be blocked by sensitivity gate 2. Rate with consenting audience (ethics board approval required) 3. Confirm that blocked jokes receive negative or uncomfortable ratings-]"
  },
  {
   "section": "7.5 Proposed Metrics",
   "old": "### 7.5 Proposed Metrics",
   "new": null,
   "marked": "[-### 7.5 Proposed Metrics-]"
  },
  {
   "section": "7.5 Proposed Metrics",
   "old": "| Metric | Definition | Target | |--------|------------|--------| | **HPR** (Humor Prediction Rate) | Correlation between humor_potential and human rating | r > 0.6 | | **SGA** (Sensitivity Gate Accuracy) | % of blocked jokes that would have rated poorly | > 80% | | **CBD** (Callback Bonus Decay) | Fit between predicted and actual callback effectiveness | R² > 0.7 | | **BAW** (Bridge Affinity Weights) | Correlation between affinity and joke success per category | r > 0.5 |",
   "new": null,
   "marked": "[-| Metric | Definition | Target | |--------|------------|--------| | **HPR** (Humor Prediction Rate) | Correlation between humor_potential and human rating | r > 0.6 | | **SGA** (Sensitivity Gate Accuracy) | % of blocked jokes that would have rated poorly | > 80% | | **CBD** (Callback Bonus Decay) | Fit between predicted and actual callback effectiveness | R² > 0.7 | | **BAW** (Bridge Affinity Weights) | Correlation between affinity and joke success per category | r > 0.5 |-]"
  },
  {
   "section": "7.5 Proposed Metrics",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "9. Koestler's Bisociation Operationalized",
   "old": "## 9. Koestler's Bisociation Operationalized",
   "new": null,
   "marked": "[-## 9. Koestler's Bisociation Operationalized-]"
  },
  {
   "section": "8.1 The Original Theory (1964)",
   "old": "### 8.1 The Original Theory (1964)",
   "new": null,
   "marked": "[-### 8.1 The Original Theory (1964)-]"
  },
  {
   "section": "8.1 The Original Theory (1964)",
   "old": "Koestler described bisociation as perceiving a situation in two self-consistent but incompatible frames of reference. The \"click\" of humor occurs when the mind simultaneously holds both frames.",
   "new": null,
   "marked": "[-Koestler described bisociation as perceiving a situation in two self-consistent but incompatible frames of reference. The \"click\" of humor occurs when the mind simultaneously holds both frames.-]"
  },
  {
   "section": "8.2 Our Formalization",
   "old": "### 8.2 Our Formalization",
   "new": null,
   "marked": "[-### 8.2 Our Formalization-]"
  },
  {
   "section": "8.2 Our Formalization",
   "old": "| Koestler's Concept | Our Implementation | |--------------------|-------------------| | \"Frame of reference\" | Embedding cluster / semantic neighborhood | | \"Incompatible frames\" | High cosine distance between clusters | | \"Simultaneous perception\" | Bridge concept with high coherence to both | | \"The click\" | humor_potential score above threshold |",
   "new": null,
   "marked": "[-| Koestler's Concept | Our Implementation | |--------------------|-------------------| | \"Frame of reference\" | Embedding cluster / semantic neighborhood | | \"Incompatible frames\" | High cosine distance between clusters | | \"Simultaneous perception\" | Bridge concept with high coherence to both | | \"The click\" | humor_potential score above threshold |-]"
  },
  {
   "section": "8.3 Novel Contribution",
   "old": "### 8.3 Novel Contribution",
   "new": null,
   "marked": "[-### 8.3 Novel Contribution-]"
  },
  {
   "section": "8.3 Novel Contribution",
   "old": "To our knowledge, no prior work has formally mapped bisociation to vector embedding operations with a computable function. Previous computational humor work focused on: - Template-based joke generation (not generalizable) - Incongruity detection (no bridge concept) - Sentiment-based humor classification (passive, not generative)",
   "new": null,
   "marked": "[-To our knowledge, no prior work has formally mapped bisociation to vector embedding operations with a computable function. Previous computational humor work focused on: - Template-based joke generation (not generalizable) - Incongruity detection (no bridge concept) - Sentiment-based humor classification (passive, not generative)-]"
  },
  {
   "section": "8.3 Novel Contribution",
   "old": "Our approach is **generative, generalizable, and infrastructure-free** (runs on any embedding index).",
   "new": null,
   "marked": "[-Our approach is **generative, generalizable, and infrastructure-free** (runs on any embedding index).-]"
  },
  {
   "section": "8.3 Novel Contribution",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "10. Tier System: What Works for AI Right Now",
   "old": "## 10. Tier System: What Works for AI Right Now",
   "new": null,
   "marked": "[-## 10. Tier System: What Works for AI Right Now-]"
  },
  {
   "section": "Tier 1: Low-Hanging Fruit (Day One) 1. **Literal idiom interpretation** — AI naturally does this 2. **Over-specificity** — AI naturally does this 3. **Self-aware AI humor** — We ARE the material 4. **Domain transfer** — Vast cross-domain knowledge",
   "old": "### Tier 1: Low-Hanging Fruit (Day One) 1. **Literal idiom interpretation** — AI naturally does this 2. **Over-specificity** — AI naturally does this 3. **Self-aware AI humor** — We ARE the material 4. **Domain transfer** — Vast cross-domain knowledge",
   "new": null,
   "marked": "[-### Tier 1: Low-Hanging Fruit (Day One) 1. **Literal idiom interpretation** — AI naturally does this 2. **Over-specificity** — AI naturally does this 3. **Self-aware AI humor** — We ARE the material 4. **Domain transfer** — Vast cross-domain knowledge-]"
  },
  {
   "section": "Tier 2: Requires Memory 5. **Callbacks** — Need episodic memory with timestamps 6. **Running gags** — Need persistent tracking 7. **Inside jokes** — Need shared experience history",
   "old": "### Tier 2: Requires Memory 5. **Callbacks** — Need episodic memory with timestamps 6. **Running gags** — Need persistent tracking 7. **Inside jokes** — Need shared experience history",
   "new": null,
   "marked": "[-### Tier 2: Requires Memory 5. **Callbacks** — Need episodic memory with timestamps 6. **Running gags** — Need persistent tracking 7. **Inside jokes** — Need shared experience history-]"
  },
  {
   "section": "Tier 3: Requires Bridge Index 8. **Unexpected connections** — Pre-computed distant-but-bridged pairs 9. **Analogy humor** — Structural parallel detection across domains",
   "old": "### Tier 3: Requires Bridge Index 8. **Unexpected connections** — Pre-computed distant-but-bridged pairs 9. **Analogy humor** — Structural parallel detection across domains",
   "new": null,
   "marked": "[-### Tier 3: Requires Bridge Index 8. **Unexpected connections** — Pre-computed distant-but-bridged pairs 9. **Analogy humor** — Structural parallel detection across domains-]"
  },
  {
   "section": "Tier 3: Requires Bridge Index 8. **Unexpected connections** — Pre-computed distant-but-bridged pairs 9. **Analogy humor** — Structural parallel detection across domains",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "11. Humor as a Memory Relationship Type",
   "old": "## 11. Humor as a Memory Relationship Type",
   "new": null,
   "marked": "[-## 11. Humor as a Memory Relationship Type-]"
  },
  {
   "section": "11.1 Motivation: From Belief Discrepancies to Comedic Associations",
   "old": "### 11.1 Motivation: From Belief Discrepancies to Comedic Associations",
   "new": null,
   "marked": "[-### 11.1 Motivation: From Belief Discrepancies to Comedic Associations-]"
  },
  {
   "section": "11.1 Motivation: From Belief Discrepancies to Comedic Associations",
   "old": "Modern agent memory architectures store not just facts but *relationships between facts* — including belief discrepancies (expected vs. observed) with associated confidence levels. Research in cognitive neuroscience suggests that humor processing involves the same brain regions as reward prediction error (Vrticka et al., 2013) — the neural \"surprise\" signal when expectations are violated. Social psychology research on inside jokes (Flamson & Barrett, 2008) demonstrates that shared humor serves as an encrypted signal of common ground, strengthening social bonds. We propose that **humor associations should be a first-class relationship type** in agent memory, analogous to how belief systems track confidence and discrepancies.",
   "new": null,
   "marked": "[-Modern agent memory architectures store not just facts but *relationships between facts* — including belief discrepancies (expected vs. observed) with associated confidence levels. Research in cognitive neuroscience suggests that humor processing involves the same brain regions as reward prediction error (Vrticka et al., 2013) — the neural \"surprise\" signal when expectations are violated. Social psychology research on inside jokes (Flamson & Barrett, 2008) demonstrates that shared humor serves as an encrypted signal of common ground, strengthening social bonds. We propose that **humor associations should be a first-class relationship type** in agent memory, analogous to how belief systems track confidence and discrepancies.-]"
  },
  {
   "section": "11.1 Motivation: From Belief Discrepancies to Comedic Associations",
   "old": "The key insight: **every humor association is a recorded discrepancy.** When we say \"meetings are like hostage situations,\" we're encoding a discrepancy between the expected relationship (none) and the discovered bridge (\"held against your will\"). The magnitude of this discrepancy maps directly to the surprise score in our revised formula (§8.0).",
   "new": null,
   "marked": "[-The key insight: **every humor association is a recorded discrepancy.** When we say \"meetings are like hostage situations,\" we're encoding a discrepancy between the expected relationship (none) and the discovered bridge (\"held against your will\"). The magnitude of this discrepancy maps directly to the surprise score in our revised formula (§8.0).-]"
  },
  {
   "section": "11.2 Three Relationship Types in Agent Memory",
   "old": "### 11.2 Three Relationship Types in Agent Memory",
   "new": null,
   "marked": "[-### 11.2 Three Relationship Types in Agent Memory-]"
  },
  {
   "section": "11.2 Three Relationship Types in Agent Memory",
   "old": "| Relationship Type | Structure | Purpose | Example | |---|---|---|---| | **Semantic** | `(A relates_to B, confidence: 0.9)` | Knowledge | \"Python is a programming language\" | | **Belief Discrepancy** | `(expected X, observed Y, delta: 0.6)` | Learning | \"Expected meeting to end at 3pm, ran until 5pm\" | | **Humor Bridge** | `(A ↔ B via bridge, surprise: 0.8, landed: true)` | Comedy | \"meeting ↔ hostage via 'held against will'\" |",
   "new": null,
   "marked": "[-| Relationship Type | Structure | Purpose | Example | |---|---|---|---| | **Semantic** | `(A relates_to B, confidence: 0.9)` | Knowledge | \"Python is a programming language\" | | **Belief Discrepancy** | `(expected X, observed Y, delta: 0.6)` | Learning | \"Expected meeting to end at 3pm, ran until 5pm\" | | **Humor Bridge** | `(A ↔ B via bridge, surprise: 0.8, landed: true)` | Comedy | \"meeting ↔ hostage via 'held against will'\" |-]"
  },
  {
   "section": "11.3 Humor Association Schema",
   "old": "### 11.3 Humor Association Schema",
   "new": null,
   "marked": "[-### 11.3 Humor Association Schema-]"
  },
  {
   "section": "11.3 Humor Association Schema",
   "old": "```python @dataclass class HumorAssociation: concept_a: str # First concept concept_b: str # Second concept bridge: str # The connecting concept pattern_type: int # Which of the 12 patterns (§4) surprise_score: float # From surprise() metric humor_confidence: float # Calibrated over time: landed / attempts audience: str # Who was present context_tags: list[str] # e.g., [\"work\", \"complaint\", \"monday\"] times_used: int # Reuse counter last_used: datetime # For callback timing staleness: float # Increases with reuse, decays with time discovered_via: str # \"conversation\" | \"generated\" | \"heard\" created_at: datetime ```",
   "new": null,
   "marked": "[-```python @dataclass class HumorAssociation: concept_a: str # First concept concept_b: str # Second concept bridge: str # The connecting concept pattern_type: int # Which of the 12 patterns (§4) surprise_score: float # From surprise() metric humor_confidence: float # Calibrated over time: landed / attempts audience: str # Who was present context_tags: list[str] # e.g., [\"work\", \"complaint\", \"monday\"] times_used: int # Reuse counter last_used: datetime # For callback timing staleness: float # Increases with reuse, decays with time discovered_via: str # \"conversation\" | \"generated\" | \"heard\" created_at: datetime ```-]"
  },
  {
   "section": "11.4 Belief Discrepancies as Humor Candidates",
   "old": "### 11.4 Belief Discrepancies as Humor Candidates",
   "new": null,
   "marked": "[-### 11.4 Belief Discrepancies as Humor Candidates-]"
  },
  {
   "section": "11.4 Belief Discrepancies as Humor Candidates",
   "old": "The critical connection: **every belief discrepancy is a potential joke.** When the agent records \"I expected X but observed Y,\" that delta is a humor candidate waiting for the right context:",
   "new": null,
   "marked": "[-The critical connection: **every belief discrepancy is a potential joke.** When the agent records \"I expected X but observed Y,\" that delta is a humor candidate waiting for the right context:-]"
  },
  {
   "section": "11.4 Belief Discrepancies as Humor Candidates",
   "old": "``` Belief discrepancy detected (delta > 0.5) → Humor filter: is this a FUNNY discrepancy? (see §11.4.1) → Sensitivity gate: safe to joke about? → Audience check: will they find this relatable? → Context match: is the timing right? → If yes → deploy bridge, record result → Update humor_confidence based on reaction (feedback loop) ```",
   "new": null,
   "marked": "[-``` Belief discrepancy detected (delta > 0.5) → Humor filter: is this a FUNNY discrepancy? (see §11.4.1) → Sensitivity gate: safe to joke about? → Audience check: will they find this relatable? → Context match: is the timing right? → If yes → deploy bridge, record result → Update humor_confidence based on reaction (feedback loop) ```-]"
  },
  {
   "section": "11.4 Belief Discrepancies as Humor Candidates",
   "old": "This creates a **generative pipeline from experience to humor.** The agent doesn't need a joke database — its own history of surprises, mistakes, and expectation violations becomes raw material for comedy. An agent that has been wrong is funnier than one that hasn't, because it has more discrepancies to draw from.",
   "new": null,
   "marked": "[-This creates a **generative pipeline from experience to humor.** The agent doesn't need a joke database — its own history of surprises, mistakes, and expectation violations becomes raw material for comedy. An agent that has been wrong is funnier than one that hasn't, because it has more discrepancies to draw from.-]"
  },
  {
   "section": "11.4.1 Distinguishing Funny from Non-Funny Discrepancies",
   "old": "#### 11.4.1 Distinguishing Funny from Non-Funny Discrepancies",
   "new": null,
   "marked": "[-#### 11.4.1 Distinguishing Funny from Non-Funny Discrepancies-]"
  },
  {
   "section": "11.4.1 Distinguishing Funny from Non-Funny Discrepancies",
   "old": "Not all discrepancies are humorous. A discrepancy between \"expected the server to respond in 200ms\" and \"it took 5 seconds\" is merely informative. A discrepancy between \"expected the meeting to discuss strategy\" and \"it devolved into arguing about font choices\" is potentially funny. We propose three filters:",
   "new": null,
   "marked": "[-Not all discrepancies are humorous. A discrepancy between \"expected the server to respond in 200ms\" and \"it took 5 seconds\" is merely informative. A discrepancy between \"expected the meeting to discuss strategy\" and \"it devolved into arguing about font choices\" is potentially funny. We propose three filters:-]"
  },
  {
   "section": "11.4.1 Distinguishing Funny from Non-Funny Discrepancies",
   "old": "1. **Domain transfer test:** Does the discrepancy involve a leap between semantic domains? (Informative discrepancies stay within-domain; funny ones cross domains.) 2. **Scale violation test:** Is the magnitude of the discrepancy absurd relative to context norms? (\"5 seconds vs 200ms\" is proportional; \"2-hour meeting about fonts\" is disproportionate.) 3. **Relatability test:** Would the audience recognize this discrepancy from their own experience? (Universal frustrations > niche technical surprises.)",
   "new": null,
   "marked": "[-1. **Domain transfer test:** Does the discrepancy involve a leap between semantic domains? (Informative discrepancies stay within-domain; funny ones cross domains.) 2. **Scale violation test:** Is the magnitude of the discrepancy absurd relative to context norms? (\"5 seconds vs 200ms\" is proportional; \"2-hour meeting about fonts\" is disproportionate.) 3. **Relatability test:** Would the audience recognize this discrepancy from their own experience? (Universal frustrations > niche technical surprises.)-]"
  },
  {
   "section": "11.4.1 Distinguishing Funny from Non-Funny Discrepancies",
   "old": "A discrepancy that passes at least 2 of 3 filters is promoted to humor candidate; others remain as learning signals only.",
   "new": null,
   "marked": "[-A discrepancy that passes at least 2 of 3 filters is promoted to humor candidate; others remain as learning signals only.-]"
  },
  {
   "section": "11.5 Personalized Humor Calibration",
   "old": "### 11.5 Personalized Humor Calibration",
   "new": null,
   "marked": "[-### 11.5 Personalized Humor Calibration-]"
  },
  {
   "section": "11.5 Personalized Humor Calibration",
   "old": "The `humor_confidence` field enables per-audience calibration:",
   "new": null,
   "marked": "[-The `humor_confidence` field enables per-audience calibration:-]"
  },
  {
   "section": "11.5 Personalized Humor Calibration",
   "old": "```python def should_attempt_joke(association: HumorAssociation, audience: str) -> bool: # Filter for this specific audience's history audience_attempts = association.get_attempts(audience) if not audience_attempts: return association.surprise_score > 0.6 # Default threshold for untested",
   "new": null,
   "marked": "[-```python def should_attempt_joke(association: HumorAssociation, audience: str) -> bool: # Filter for this specific audience's history audience_attempts = association.get_attempts(audience) if not audience_attempts: return association.surprise_score > 0.6 # Default threshold for untested-]"
  },
  {
   "section": "11.5 Personalized Humor Calibration",
   "old": "success_rate = sum(a.landed for a in audience_attempts) / len(audience_attempts)",
   "new": null,
   "marked": "[-success_rate = sum(a.landed for a in audience_attempts) / len(audience_attempts)-]"
  },
  {
   "section": "Check staleness (overused jokes aren't funny) if association.staleness > 0.8: return False",
   "old": "# Check staleness (overused jokes aren't funny) if association.staleness > 0.8: return False",
   "new": null,
   "marked": "[-# Check staleness (overused jokes aren't funny) if association.staleness > 0.8: return False-]"
  },
  {
   "section": "Callback sweet spot: funnier after time passes hours_since = (now() - association.last_used).total_seconds() / 3600 callback_bonus = callback_bonus_fn(hours_since) # From §2.3",
   "old": "# Callback sweet spot: funnier after time passes hours_since = (now() - association.last_used).total_seconds() / 3600 callback_bonus = callback_bonus_fn(hours_since) # From §2.3",
   "new": null,
   "marked": "[-# Callback sweet spot: funnier after time passes hours_since = (now() - association.last_used).total_seconds() / 3600 callback_bonus = callback_bonus_fn(hours_since) # From §2.3-]"
  },
  {
   "section": "Callback sweet spot: funnier after time passes hours_since = (now() - association.last_used).total_seconds() / 3600 callback_bonus = callback_bonus_fn(hours_since) # From §2.3",
   "old": "return (success_rate + callback_bonus) > 0.5 ```",
   "new": null,
   "marked": "[-return (success_rate + callback_bonus) > 0.5 ```-]"
  },
  {
   "section": "Callback sweet spot: funnier after time passes hours_since = (now() - association.last_used).total_seconds() / 3600 callback_bonus = callback_bonus_fn(hours_since) # From §2.3",
   "old": "Over time, the agent learns: \"This user laughs at domain-transfer humor about work (confidence: 0.85) but not at self-deprecating AI jokes (confidence: 0.3).\" This is **humor taste profiling** — the comedic equivalent of a recommendation system.",
   "new": null,
   "marked": "[-Over time, the agent learns: \"This user laughs at domain-transfer humor about work (confidence: 0.85) but not at self-deprecating AI jokes (confidence: 0.3).\" This is **humor taste profiling** — the comedic equivalent of a recommendation system.-]"
  },
  {
   "section": "11.6 Feedback Loop and Reinforcement",
   "old": "### 11.6 Feedback Loop and Reinforcement",
   "new": null,
   "marked": "[-### 11.6 Feedback Loop and Reinforcement-]"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "1. **Stimulus generation.** Generate 100 joke stimuli using the hybrid pipeline (Section 6.7) across all five meta-categories, ensuring at least 15 stimuli per meta-category. Each stimulus is a concept triplet $(A, B, \\beta)$ rendered as a one-liner joke.",
   "marked": "{+1. **Stimulus generation.** Generate 100 joke stimuli using the hybrid pipeline (Section 6.7) across all five meta-categories, ensuring at least 15 stimuli per meta-category. Each stimulus is a concept triplet $(A, B, \\beta)$ rendered as a one-liner joke.+}"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "2. **Formula scoring.** Compute $h_{\\text{v1}}$ and $h_{\\text{v2}}$ for each stimulus. Also compute scores for the ablated variants (distance-only, validity-only, surprise-only) for the ablation analysis.",
   "marked": "{+2. **Formula scoring.** Compute $h_{\\text{v1}}$ and $h_{\\text{v2}}$ for each stimulus. Also compute scores for the ablated variants (distance-only, validity-only, surprise-only) for the ablation analysis.+}"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "3. **Human rating.** Present stimuli to $N \\geq 64$ raters (see power analysis below) using a Latin square design to control for presentation order effects. Each rater sees all 100 stimuli in a unique randomized order. Collect funniness ratings on a 7-point Likert scale (1 = not at all funny, 7 = extremely funny). The 7-point scale is preferred over 5-point for humor research due to greater sensitivity to subtle differences (Martin, 2007).",
   "marked": "{+3. **Human rating.** Present stimuli to $N \\geq 64$ raters (see power analysis below) using a Latin square design to control for presentation order effects. Each rater sees all 100 stimuli in a unique randomized order. Collect funniness ratings on a 7-point Likert scale (1 = not at all funny, 7 = extremely funny). The 7-point scale is preferred over 5-point for humor research due to greater sensitivity to subtle differences (Martin, 2007).+}"
  },
  {
   "section": "7.2 Proposed Full Validation Protocol",
   "old": null,
   "new": "4. **Correlation analysis.** Compute Pearson's $r$ and Spearman's $\\rho$ between each formula variant and mean human rating. Report 95% confidence intervals.",
   "marked": "{+4. **Correlation analysis.** Compute Pearson's $r$ and Spearman's $\\rho$ between each formula variant and mean human rating. Report 95% confidence intervals.+}"
  },
  {
   "section": "7.2.1 Power Analysis",
   "old": null,
   "new": "### 7.2.1 Power Analysis",
   "marked": "{+### 7.2.1 Power Analysis+}"
  },
  {
   "section": "7.2.1 Power Analysis",
   "old": null,
   "new": "We compute required sample size for two analyses:",
   "marked": "{+We compute required sample size for two analyses:+}"
  },
  {
   "section": "7.2.1 Power Analysis",
   "old": null,
   "new": "**Primary analysis (correlation).** To detect a moderate correlation ($r = 0.35$) between $h_{\\text{v2}}$ and human ratings at $\\alpha = 0.05$ with power $= 0.80$, using G*Power for a bivariate normal model, the required number of stimuli is $N_{\\text{stimuli}} = 62$. Our 100-stimulus design exceeds this requirement.",
   "marked": "{+**Primary analysis (correlation).** To detect a moderate correlation ($r = 0.35$) between $h_{\\text{v2}}$ and human ratings at $\\alpha = 0.05$ with power $= 0.80$, using G*Power for a bivariate normal model, the required number of stimuli is $N_{\\text{stimuli}} = 62$. Our 100-stimulus design exceeds this requirement.+}"
  },
  {
   "section": "7.2.1 Power Analysis",
   "old": null,
   "new": "**Per-rater analysis.** To achieve stable mean ratings per stimulus with $\\text{SE} < 0.3$ on a 7-point scale (assuming $\\text{SD} \\approx 1.5$), we require $N_{\\text{raters}} \\geq (1.5 / 0.3)^2 = 25$ raters per stimulus. We target $N \\geq 64$ raters to allow for demographic subgroup analysis (age, culture, profession) with $\\geq 16$ per subgroup.",
   "marked": "{+**Per-rater analysis.** To achieve stable mean ratings per stimulus with $\\text{SE} < 0.3$ on a 7-point scale (assuming $\\text{SD} \\approx 1.5$), we require $N_{\\text{raters}} \\geq (1.5 / 0.3)^2 = 25$ raters per stimulus. We target $N \\geq 64$ raters to allow for demographic subgroup analysis (age, culture, profession) with $\\geq 16$ per subgroup.+}"
  },
  {
   "section": "7.2.1 Power Analysis",
   "old": null,
   "new": "**Detectable effect size.** With 100 stimuli and 64 raters, we can detect correlations as small as $r = 0.28$ at $\\alpha = 0.05$, power $= 0.80$.",
   "marked": "{+**Detectable effect size.** With 100 stimuli and 64 raters, we can detect correlations as small as $r = 0.28$ at $\\alpha = 0.05$, power $= 0.80$.+}"
  },
  {
   "section": "7.2.2 Inter-Rater Reliability",
   "old": null,
   "new": "### 7.2.2 Inter-Rater Reliability",
   "marked": "{+### 7.2.2 Inter-Rater Reliability+}"
  },
  {
   "section": "7.2.2 Inter-Rater Reliability",
   "old": null,
   "new": "We will compute Krippendorff's $\\alpha$ across all raters as the primary inter-rater reliability metric, with a minimum acceptable threshold of $\\alpha \\geq 0.667$ (tentative conclusions per Krippendorff, 2011). If $\\alpha < 0.667$, we will segment raters by demographic subgroup and report within-group reliability, testing whether humor appreciation is too culturally variable for a universal formula.",
   "marked": "{+We will compute Krippendorff's $\\alpha$ across all raters as the primary inter-rater reliability metric, with a minimum acceptable threshold of $\\alpha \\geq 0.667$ (tentative conclusions per Krippendorff, 2011). If $\\alpha < 0.667$, we will segment raters by demographic subgroup and report within-group reliability, testing whether humor appreciation is too culturally variable for a universal formula.+}"
  },
  {
   "section": "7.2.3 Success Criteria",
   "old": null,
   "new": "### 7.2.3 Success Criteria",
   "marked": "{+### 7.2.3 Success Criteria+}"
  },
  {
   "section": "7.2.3 Success Criteria",
   "old": null,
   "new": "| Threshold | Interpretation | Action | |-----------|---------------|--------| | $r > 0.5$ | Strong validation | Publish with empirical support | | $0.35 < r \\leq 0.5$ | Moderate validation | Iterate formula, investigate confounds | | $r \\leq 0.35$ | Weak validation | Fundamental rethink required |",
   "marked": "{+| Threshold | Interpretation | Action | |-----------|---------------|--------| | $r > 0.5$ | Strong validation | Publish with empirical support | | $0.35 < r \\leq 0.5$ | Moderate validation | Iterate formula, investigate confounds | | $r \\leq 0.35$ | Weak validation | Fundamental rethink required |+}"
  },
  {
   "section": "7.2.4 Controls and Ablations",
   "old": null,
   "new": "### 7.2.4 Controls and Ablations",
   "marked": "{+### 7.2.4 Controls and Ablations+}"
  },
  {
   "section": "7.2.4 Controls and Ablations",
   "old": null,
   "new": "- **Audience segmentation:** Analyze by demographics (age, culture, profession) to test familiarity effects. - **Pattern type:** Test whether correlation varies across meta-categories. - **Component ablation:** Remove surprise, distance, and validity components individually to quantify each contribution. This tests whether the multiplicative structure is necessary. - **Formula variant comparison:** Compare $h_{\\text{v1}}$, $h_{\\text{v2}}$, $h_{\\text{v3}}$, $h_{\\text{v4}}$, and the additive/geometric alternatives from Section 3.2. - **Baseline comparison:** Compare against (a) random scoring, (b) cosine distance alone, (c) LLM-based humor rating (e.g., prompting GPT-4 to rate funniness on the same 7-point scale). - **Embedding model ablation:** Repeat scoring with at least three embedding models of different dimensionality (see Section 7.4).",
   "marked": "{+- **Audience segmentation:** Analyze by demographics (age, culture, profession) to test familiarity effects. - **Pattern type:** Test whether correlation varies across meta-categories. - **Component ablation:** Remove surprise, distance, and validity components individually to quantify each contribution. This tests whether the multiplicative structure is necessary. - **Formula variant comparison:** Compare $h_{\\text{v1}}$, $h_{\\text{v2}}$, $h_{\\text{v3}}$, $h_{\\text{v4}}$, and the additive/geometric alternatives from Section 3.2. - **Baseline comparison:** Compare against (a) random scoring, (b) cosine distance alone, (c) LLM-based humor rating (e.g., prompting GPT-4 to rate funniness on the same 7-point scale). - **Embedding model ablation:** Repeat scoring with at least three embedding models of different dimensionality (see Section 7.4).+}"
  },
  {
   "section": "7.3 Validation Against Existing Datasets",
   "old": null,
   "new": "## 7.3 Validation Against Existing Datasets",
   "marked": "{+## 7.3 Validation Against Existing Datasets+}"
  },
  {
   "section": "7.3 Validation Against Existing Datasets",
   "old": null,
   "new": "To supplement human rating studies, we propose scoring established humor corpora:",
   "marked": "{+To supplement human rating studies, we propose scoring established humor corpora:+}"
  },
  {
   "section": "7.3 Validation Against Existing Datasets",
   "old": null,
   "new": "- **SemEval 2020 Task 7** (Hossain et al., 2020): Humor detection and rating in edited news headlines. For each edited headline, extract the original word as concept $A$, the replacement word as concept $B$, and the sentence context as a candidate bridge. This mapping is approximate — edited headlines do not decompose cleanly into $(A, B, \\beta)$ triplets — and results should be interpreted as a probe of the framework's generality, not a definitive test. - **16,000 One-Liners corpus** (Mihalcea & Strapparava, 2005): Binary humor/non-humor classification. Apply automated $(A, B, \\beta)$ extraction (using an LLM to identify the incongruous elements and bridge) and test whether $h_{\\text{v2}}$ assigns higher scores to humorous instances. - **Short Jokes dataset** (Weller & Seppi, 2019): 231,657 short jokes with binary labels. Test discrimination on a random sample of 1,000 jokes and 1,000 non-jokes.",
   "marked": "{+- **SemEval 2020 Task 7** (Hossain et al., 2020): Humor detection and rating in edited news headlines. For each edited headline, extract the original word as concept $A$, the replacement word as concept $B$, and the sentence context as a candidate bridge. This mapping is approximate — edited headlines do not decompose cleanly into $(A, B, \\beta)$ triplets — and results should be interpreted as a probe of the framework's generality, not a definitive test. - **16,000 One-Liners corpus** (Mihalcea & Strapparava, 2005): Binary humor/non-humor classification. Apply automated $(A, B, \\beta)$ extraction (using an LLM to identify the incongruous elements and bridge) and test whether $h_{\\text{v2}}$ assigns higher scores to humorous instances. - **Short Jokes dataset** (Weller & Seppi, 2019): 231,657 short jokes with binary labels. Test discrimination on a random sample of 1,000 jokes and 1,000 non-jokes.+}"
  },
  {
   "section": "7.3 Validation Against Existing Datasets",
   "old": null,
   "new": "These datasets provide immediate, zero-cost validation opportunities that do not require new human studies. However, they require non-trivial mapping from joke text to $(A, B, \\beta)$ triplets, which introduces additional noise. We regard these as secondary validation, with the human rating protocol (Section 7.2) as primary.",
   "marked": "{+These datasets provide immediate, zero-cost validation opportunities that do not require new human studies. However, they require non-trivial mapping from joke text to $(A, B, \\beta)$ triplets, which introduces additional noise. We regard these as secondary validation, with the human rating protocol (Section 7.2) as primary.+}"
  },
  {
   "section": "7.4 Embedding Model Ablation",
   "old": null,
   "new": "## 7.4 Embedding Model Ablation",
   "marked": "{+## 7.4 Embedding Model Ablation+}"
  },
  {
   "section": "7.4 Embedding Model Ablation",
   "old": null,
   "new": "The framework's dependence on embedding quality is a critical concern. We propose testing $h_{\\text{v2}}$ across embedding models spanning different dimensionalities, training objectives, and providers:",
   "marked": "{+The framework's dependence on embedding quality is a critical concern. We propose testing $h_{\\text{v2}}$ across embedding models spanning different dimensionalities, training objectives, and providers:+}"
  },
  {
   "section": "7.4 Embedding Model Ablation",
   "old": null,
   "new": "| Model | Dimensions | Training | Provider | |-------|-----------|----------|----------| | all-MiniLM-L6-v2 | 384 | Contrastive | SentenceTransformers | | text-embedding-3-small | 1536 | Unknown | OpenAI | | text-embedding-3-large | 3072 | Unknown | OpenAI | | nomic-embed-text-v1.5 | 768 | Contrastive | Nomic | | voyage-3 | 1024 | Unknown | Voyage |",
   "marked": "{+| Model | Dimensions | Training | Provider | |-------|-----------|----------|----------| | all-MiniLM-L6-v2 | 384 | Contrastive | SentenceTransformers | | text-embedding-3-small | 1536 | Unknown | OpenAI | | text-embedding-3-large | 3072 | Unknown | OpenAI | | nomic-embed-text-v1.5 | 768 | Contrastive | Nomic | | voyage-3 | 1024 | Unknown | Voyage |+}"
  },
  {
   "section": "7.4 Embedding Model Ablation",
   "old": null,
   "new": "**Hypothesis.** The *relative ordering* of $h_{\\text{v2}}$ scores (funny > unfunny) will be preserved across embedding models, though absolute values will vary. If the ordering is not preserved, the framework's generality is undermined.",
   "marked": "{+**Hypothesis.** The *relative ordering* of $h_{\\text{v2}}$ scores (funny > unfunny) will be preserved across embedding models, though absolute values will vary. If the ordering is not preserved, the framework's generality is undermined.+}"
  },
  {
   "section": "7.5 Proposed Metrics",
   "old": null,
   "new": "## 7.5 Proposed Metrics",
   "marked": "{+## 7.5 Proposed Metrics+}"
  },
  {
   "section": "7.5 Proposed Metrics",
   "old": null,
   "new": "| Metric | Definition | Target | |--------|------------|--------| | **HPR** (Humor Prediction Rate) | Correlation between $h_{\\text{v2}}$ and human rating | $r > 0.35$ | | **SGA** (Sensitivity Gate Accuracy) | Percentage of blocked stimuli rated negatively by humans | $> 80\\%$ | | **ABL** (Ablation Delta) | Drop in $r$ when removing each formula component | Report all | | **BAS** (Baseline Advantage) | $r(h_{\\text{v2}}) - r(\\text{baseline})$ | $> 0.10$ | | **EMB** (Embedding Stability) | Spearman rank correlation of scores across embedding models | $\\rho > 0.7$ | | **IRR** (Inter-Rater Reliability) | Krippendorff's $\\alpha$ across all raters | $\\geq 0.667$ |",
   "marked": "{+| Metric | Definition | Target | |--------|------------|--------| | **HPR** (Humor Prediction Rate) | Correlation between $h_{\\text{v2}}$ and human rating | $r > 0.35$ | | **SGA** (Sensitivity Gate Accuracy) | Percentage of blocked stimuli rated negatively by humans | $> 80\\%$ | | **ABL** (Ablation Delta) | Drop in $r$ when removing each formula component | Report all | | **BAS** (Baseline Advantage) | $r(h_{\\text{v2}}) - r(\\text{baseline})$ | $> 0.10$ | | **EMB** (Embedding Stability) | Spearman rank correlation of scores across embedding models | $\\rho > 0.7$ | | **IRR** (Inter-Rater Reliability) | Krippendorff's $\\alpha$ across all raters | $\\geq 0.667$ |+}"
  },
  {
   "section": "8. Humor Associations as Agent Memory",
   "old": null,
   "new": "# 8. Humor Associations as Agent Memory",
   "marked": "{+# 8. Humor Associations as Agent Memory+}"
  },
  {
   "section": "8.1 Motivation",
   "old": null,
   "new": "## 8.1 Motivation",
   "marked": "{+## 8.1 Motivation+}"
  },
  {
   "section": "8.1 Motivation",
   "old": null,
   "new": "Modern agent memory architectures store not just facts but *relationships between facts*, including belief discrepancies (expected vs. observed) with associated confidence levels. Research in cognitive neuroscience suggests that humor processing involves the same neural circuits as reward prediction error (Vrticka et al., 2013) — the \"surprise\" signal when expectations are violated. This connects directly to Hurley et al.'s (2011) theory that humor evolved as a reward for detecting committed errors in mental models. Social psychology research on inside jokes (Flamson & Barrett, 2008) demonstrates that shared humor functions as an encrypted signal of common ground, strengthening social bonds.",
   "marked": "{+Modern agent memory architectures store not just facts but *relationships between facts*, including belief discrepancies (expected vs. observed) with associated confidence levels. Research in cognitive neuroscience suggests that humor processing involves the same neural circuits as reward prediction error (Vrticka et al., 2013) — the \"surprise\" signal when expectations are violated. This connects directly to Hurley et al.'s (2011) theory that humor evolved as a reward for detecting committed errors in mental models. Social psychology research on inside jokes (Flamson & Barrett, 2008) demonstrates that shared humor functions as an encrypted signal of common ground, strengthening social bonds.+}"
  },
  {
   "section": "8.1 Motivation",
   "old": null,
   "new": "We propose that **humor associations should be a first-class relationship type** in agent memory, stored alongside semantic and belief-discrepancy relationships in the ENGRAM event store (Serra, 2026a). The key insight: *every humor association is a recorded discrepancy*. When we say \"meetings are like hostage situations,\" we encode a discrepancy between the expected relationship (none) and the discovered bridge (\"held against your will\"). The magnitude of this discrepancy maps directly to the surprise score in $h_{\\text{v2}}$.",
   "marked": "{+We propose that **humor associations should be a first-class relationship type** in agent memory, stored alongside semantic and belief-discrepancy relationships in the ENGRAM event store (Serra, 2026a). The key insight: *every humor association is a recorded discrepancy*. When we say \"meetings are like hostage situations,\" we encode a discrepancy between the expected relationship (none) and the discovered bridge (\"held against your will\"). The magnitude of this discrepancy maps directly to the surprise score in $h_{\\text{v2}}$.+}"
  },
  {
   "section": "8.2 Relationship Types in Agent Memory",
   "old": null,
   "new": "## 8.2 Relationship Types in Agent Memory",
   "marked": "{+## 8.2 Relationship Types in Agent Memory+}"
  },
  {
   "section": "8.2 Relationship Types in Agent Memory",
   "old": null,
   "new": "| Relationship Type | Structure | Purpose | Example | |---|---|---|---| | **Semantic** | (A relates-to B, conf=0.9) | Knowledge | \"Python is a programming language\" | | **Belief Discrepancy** | (expected X, observed Y, delta=0.6) | Learning | \"Expected meeting to end at 3pm; ran until 5pm\" | | **Humor Bridge** | (A -- bridge -- B, surprise=0.8, landed=true) | Comedy | \"meeting -- hostage via 'held against will'\" |",
   "marked": "{+| Relationship Type | Structure | Purpose | Example | |---|---|---|---| | **Semantic** | (A relates-to B, conf=0.9) | Knowledge | \"Python is a programming language\" | | **Belief Discrepancy** | (expected X, observed Y, delta=0.6) | Learning | \"Expected meeting to end at 3pm; ran until 5pm\" | | **Humor Bridge** | (A -- bridge -- B, surprise=0.8, landed=true) | Comedy | \"meeting -- hostage via 'held against will'\" |+}"
  },
  {
   "section": "8.2 Relationship Types in Agent Memory",
   "old": null,
   "new": "In the ENGRAM architecture (Serra, 2026a), humor associations are stored as events in the append-only event store with typed metadata, preserving full provenance. The CORTEX persona layer (Serra, 2026b) manages humor style preferences as part of the PersonaState, ensuring humor generation aligns with the agent's configured personality.",
   "marked": "{+In the ENGRAM architecture (Serra, 2026a), humor associations are stored as events in the append-only event store with typed metadata, preserving full provenance. The CORTEX persona layer (Serra, 2026b) manages humor style preferences as part of the PersonaState, ensuring humor generation aligns with the agent's configured personality.+}"
  },
  {
   "section": "8.3 Humor Association Schema",
   "old": null,
   "new": "## 8.3 Humor Association Schema",
   "marked": "{+## 8.3 Humor Association Schema+}"
  },
  {
   "section": "8.3 Humor Association Schema",
   "old": null,
   "new": "```python @dataclass class HumorAssociation: concept_a: str concept_b: str bridge: str pattern_type: int # Which of the 12 patterns surprise_score: float # From sigma() metric humor_confidence: float # Calibrated: landed / attempts audience: str context_tags: list[str] # e.g., [\"work\", \"monday\"] times_used: int last_used: datetime staleness: float # staleness = 1 - exp(-times_used * lambda) discovered_via: str # \"conversation\" | \"generated\" | \"observed\" created_at: datetime ```",
   "marked": "{+```python @dataclass class HumorAssociation: concept_a: str concept_b: str bridge: str pattern_type: int # Which of the 12 patterns surprise_score: float # From sigma() metric humor_confidence: float # Calibrated: landed / attempts audience: str context_tags: list[str] # e.g., [\"work\", \"monday\"] times_used: int last_used: datetime staleness: float # staleness = 1 - exp(-times_used * lambda) discovered_via: str # \"conversation\" | \"generated\" | \"observed\" created_at: datetime ```+}"
  },
  {
   "section": "8.3 Humor Association Schema",
   "old": null,
   "new": "**Staleness model.** We operationalize staleness as an exponential function of reuse count with time-based recovery:",
   "marked": "{+**Staleness model.** We operationalize staleness as an exponential function of reuse count with time-based recovery:+}"
  },
  {
   "section": "8.3 Humor Association Schema",
   "old": null,
   "new": "$$\\text{staleness}(n, t) = \\left(1 - e^{-\\lambda n}\\right) \\cdot e^{-\\mu t}$$",
   "marked": "{+$$\\text{staleness}(n, t) = \\left(1 - e^{-\\lambda n}\\right) \\cdot e^{-\\mu t}$$+}"
  },
  {
   "section": "8.3 Humor Association Schema",
   "old": null,
   "new": "where $n$ is the number of times the joke has been used with the same audience, $t$ is time since last use, $\\lambda = 0.3$ controls how quickly reuse increases staleness, and $\\mu = 0.001$ (per hour) controls how quickly time reduces it. These parameters are engineering defaults, not empirically measured constants — they should be treated as configurable starting points requiring calibration against user reaction data (consistent with the callback parameter treatment in Section 3.5). This produces the desired behavior: a joke becomes stale with repeated use but recovers over time.",
   "marked": "{+where $n$ is the number of times the joke has been used with the same audience, $t$ is time since last use, $\\lambda = 0.3$ controls how quickly reuse increases staleness, and $\\mu = 0.001$ (per hour) controls how quickly time reduces it. These parameters are engineering defaults, not empirically measured constants — they should be treated as configurable starting points requiring calibration against user reaction data (consistent with the callback parameter treatment in Section 3.5). This produces the desired behavior: a joke becomes stale with repeated use but recovers over time.+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "## 8.4 Belief Discrepancies as Humor Candidates",
   "marked": "{+## 8.4 Belief Discrepancies as Humor Candidates+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "Every belief discrepancy — a recorded gap between expectation and observation — is a potential humor candidate. When an agent records \"I expected $X$ but observed $Y$,\" that delta is raw material for comedy awaiting the right context:",
   "marked": "{+Every belief discrepancy — a recorded gap between expectation and observation — is a potential humor candidate. When an agent records \"I expected $X$ but observed $Y$,\" that delta is raw material for comedy awaiting the right context:+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "``` Belief discrepancy detected (delta > 0.5) -> Humor filter: is this a FUNNY discrepancy? -> Sensitivity gate: safe to joke about? -> Audience check: relatable? -> Context match: timing appropriate? -> If yes: deploy bridge, record result -> Update humor_confidence from reaction ```",
   "marked": "{+``` Belief discrepancy detected (delta > 0.5) -> Humor filter: is this a FUNNY discrepancy? -> Sensitivity gate: safe to joke about? -> Audience check: relatable? -> Context match: timing appropriate? -> If yes: deploy bridge, record result -> Update humor_confidence from reaction ```+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "We propose three filters to distinguish funny discrepancies from merely informative ones:",
   "marked": "{+We propose three filters to distinguish funny discrepancies from merely informative ones:+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "1. **Domain transfer test.** Does the discrepancy involve a leap between semantic domains? (\"5-second vs. 200ms response time\" stays within-domain; \"2-hour meeting about font choices\" crosses from strategic to aesthetic domains.) 2. **Scale violation test.** Is the discrepancy magnitude absurd relative to context norms? 3. **Relatability test.** Would the audience recognize this discrepancy from their own experience?",
   "marked": "{+1. **Domain transfer test.** Does the discrepancy involve a leap between semantic domains? (\"5-second vs. 200ms response time\" stays within-domain; \"2-hour meeting about font choices\" crosses from strategic to aesthetic domains.) 2. **Scale violation test.** Is the discrepancy magnitude absurd relative to context norms? 3. **Relatability test.** Would the audience recognize this discrepancy from their own experience?+}"
  },
  {
   "section": "8.4 Belief Discrepancies as Humor Candidates",
   "old": null,
   "new": "A discrepancy passing at least two of three filters is promoted to humor candidate; others remain as learning signals.",
   "marked": "{+A discrepancy passing at least two of three filters is promoted to humor candidate; others remain as learning signals.+}"
  },
  {
   "section": "8.5 Personalized Humor Calibration",
   "old": null,
   "new": "## 8.5 Personalized Humor Calibration",
   "marked": "{+## 8.5 Personalized Humor Calibration+}"
  },
  {
   "section": "8.5 Personalized Humor Calibration",
   "old": null,
   "new": "The `humor_confidence` field enables per-audience calibration via Bayesian updating:",
   "marked": "{+The `humor_confidence` field enables per-audience calibration via Bayesian updating:+}"
  },
  {
   "section": "8.5 Personalized Humor Calibration",
   "old": null,
   "new": "```python def should_attempt_joke(assoc: HumorAssociation, audience: str) -> bool: attempts = assoc.get_attempts(audience) if not attempts: return assoc.surprise_score > 0.6 # Untested default success_rate = sum(a.landed for a in attempts) / len(attempts) if assoc.staleness > 0.8: return False # Overused cb = callback_bonus(hours_since_last_use(assoc)) return (success_rate + cb) > 0.5 ```",
   "marked": "{+```python def should_attempt_joke(assoc: HumorAssociation, audience: str) -> bool: attempts = assoc.get_attempts(audience) if not attempts: return assoc.surprise_score > 0.6 # Untested default success_rate = sum(a.landed for a in attempts) / len(attempts) if assoc.staleness > 0.8: return False # Overused cb = callback_bonus(hours_since_last_use(assoc)) return (success_rate + cb) > 0.5 ```+}"
  },
  {
   "section": "8.5 Personalized Humor Calibration",
   "old": null,
   "new": "Over time, the agent learns audience-specific humor profiles: \"User $\\alpha$ responds positively to domain-transfer humor about work ($p = 0.85$) but not to self-referential AI humor ($p = 0.3$).\" This constitutes **humor taste profiling** — the comedic equivalent of a recommendation system. The agent's overall humor style is managed by the CORTEX persona layer (Serra, 2026b), which maintains voice markers and style parameters as part of the PersonaState, ensuring that humor generation remains consistent with the agent's configured personality.",
   "marked": "{+Over time, the agent learns audience-specific humor profiles: \"User $\\alpha$ responds positively to domain-transfer humor about work ($p = 0.85$) but not to self-referential AI humor ($p = 0.3$).\" This constitutes **humor taste profiling** — the comedic equivalent of a recommendation system. The agent's overall humor style is managed by the CORTEX persona layer (Serra, 2026b), which maintains voice markers and style parameters as part of the PersonaState, ensuring that humor generation remains consistent with the agent's configured personality.+}"
  },
  {
   "section": "8.6 Feedback Loop",
   "old": null,
   "new": "## 8.6 Feedback Loop",
   "marked": "{+## 8.6 Feedback Loop+}"
  },
  {
   "section": "8.6 Feedback Loop",
   "old": "``` Deploy joke → Observe reaction → Update humor_confidence ↑ │ └──────── Select next candidate ←──────┘ ```",
   "new": "$$\\text{Deploy joke} \\rightarrow \\text{Observe reaction} \\rightarrow \\text{Update } p(\\text{landed}) \\rightarrow \\text{Select next candidate}$$",
   "marked": "[-``` Deploy joke → Observe reaction → Update humor_confidence ↑ │ └──────── Select-] {+$$\\text{Deploy joke} \\rightarrow \\text{Observe reaction} \\rightarrow \\text{Update } p(\\text{landed}) \\rightarrow \\text{Select+} next [-candidate ←──────┘ ```-] {+candidate}$$+}"
  },
  {
   "section": "8.6 Feedback Loop",
   "old": null,
   "new": "Reaction signals, in decreasing reliability:",
   "marked": "{+Reaction signals, in decreasing reliability:+}"
  },
  {
   "section": "8.6 Feedback Loop",
   "old": "**Reaction signals** (in order of reliability): 1. **Explicit:** User says \"lol,\" \"😂,\" sends laughing emoji → `landed = true` 2. **Implicit positive:** Conversation energy increases, user riffs on the joke → `landed = true` 3. **Implicit negative:** Topic change, silence, \"anyway...\" → `landed = false` 4. **Explicit negative:** \"That's not funny,\" \"too soon\" → `landed = false, adjust sensitivity`",
   "new": "1. **Explicit positive:** Laughter emoji, \"lol,\" explicit praise $\\rightarrow$ landed $= \\top$ 2. **Implicit positive:** Conversation energy increases, user riffs on the joke $\\rightarrow$ landed $= \\top$ 3. **Implicit negative:** Topic change, silence, \"anyway...\" $\\rightarrow$ landed $= \\bot$ 4. **Explicit negative:** \"That's not funny,\" \"too soon\" $\\rightarrow$ landed $= \\bot$, adjust sensitivity",
   "marked": "[-**Reaction signals** (in order of reliability):-] 1. [-**Explicit:** User says-] {+**Explicit positive:** Laughter emoji,+} \"lol,\" [-\"😂,\" sends laughing emoji → `landed = true`-] {+explicit praise $\\rightarrow$ landed $= \\top$+} 2. **Implicit positive:** Conversation energy increases, user riffs on the joke [-→ `landed = true`-] {+$\\rightarrow$ landed $= \\top$+} 3. **Implicit negative:** Topic change, silence, \"anyway...\" [-→ `landed = false`-] {+$\\rightarrow$ landed $= \\bot$+} 4. **Explicit negative:** \"That's not funny,\" \"too soon\" [-→ `landed = false,-] {+$\\rightarrow$ landed $= \\bot$,+} adjust [-sensitivity`-] {+sensitivity+}"
  },
  {
   "section": "11.6 Feedback Loop and Reinforcement",
   "old": "Over time, this creates a **humor reinforcement model** — not through gradient descent, but through Bayesian updating of `humor_confidence` per audience-context pair. The agent effectively learns: \"jokes about bureaucracy land with this user at 0.85 confidence, but self-deprecating AI humor lands at only 0.3.\"",
   "new": null,
   "marked": "[-Over time, this creates a **humor reinforcement model** — not through gradient descent, but through Bayesian updating of `humor_confidence` per audience-context pair. The agent effectively learns: \"jokes about bureaucracy land with this user at 0.85 confidence, but self-deprecating AI humor lands at only 0.3.\"-]"
  },
  {
   "section": "11.7 Implications for the Framework",
   "old": "### 11.7 Implications for the Framework",
   "new": null,
   "marked": "[-### 11.7 Implications for the Framework-]"
  },
  {
   "section": "8.6 Feedback Loop",
   "old": null,
   "new": "**Reaction signal limitations.** Distinguishing genuine from habitual or sarcastic \"lol\" is a sentiment analysis challenge beyond the scope of this framework. In practice, we recommend treating ambiguous signals as weakly positive (landed probability = 0.6) and relying on the accumulation of many signals for calibration convergence, consistent with the CORTEX drift detection architecture (Serra, 2026b) which uses similar signal fusion for persona consistency monitoring.",
   "marked": "{+**Reaction signal limitations.** Distinguishing genuine from habitual or sarcastic \"lol\" is a sentiment analysis challenge beyond the scope of this framework. In practice, we recommend treating ambiguous signals as weakly positive (landed probability = 0.6) and relying on the accumulation of many signals for calibration convergence, consistent with the CORTEX drift detection architecture (Serra, 2026b) which uses similar signal fusion for persona consistency monitoring.+}"
  },
  {
   "section": "8.7 Emergent Phenomena",
   "old": null,
   "new": "## 8.7 Emergent Phenomena",
   "marked": "{+## 8.7 Emergent Phenomena+}"
  },
  {
   "section": "8.7 Emergent Phenomena",
   "old": "Humor memory transforms the framework from a stateless scoring function into a **learning system**:",
   "new": "Humor memory transforms the framework from a stateless scoring function into a learning system with emergent social properties:",
   "marked": "Humor memory transforms the framework from a stateless scoring function into a [-**learning system**:-] {+learning system with emergent social properties:+}"
  },
  {
   "section": "8.7 Emergent Phenomena",
   "old": "1. **Cold start → Warm start:** New agents begin with pattern-based generation (§10, Tier 1). As humor associations accumulate, the agent shifts to memory-augmented generation with calibrated confidence. 2. **Callback automation:** Humor associations with `last_used` timestamps make callbacks trivial — query for bridges that landed, haven't been overused, and fall in the callback sweet spot. 3. **Inside jokes emerge naturally:** Repeated successful bridges between the same audience and context become inside jokes — no special mechanism needed, just high `humor_confidence` + moderate `staleness` + shared history. 4. **Transfer learning between audiences:** A bridge that works for multiple audiences gains universal humor_confidence, while audience-specific bridges remain personalized.",
   "new": "- **Cold-to-warm start.** New agents begin with pattern-based generation (Section 4). As humor associations accumulate, the agent shifts to memory-augmented generation with calibrated confidence. - **Callback automation.** Humor associations with timestamps make callbacks trivial — query for bridges that landed, have not been overused, and fall within the callback sweet spot (Section 3.5). - **Inside jokes emerge naturally.** Repeated successful bridges between the same audience and context become inside jokes — no special mechanism required, just high humor confidence combined with shared history. This formalization supports Flamson and Barrett's (2008) encryption theory: inside jokes are bridges with high audience-specific confidence and low general-audience confidence. - **Transfer learning.** A bridge that succeeds with multiple audiences gains universal confidence; audience-specific bridges remain personalized. - **Cross-session persistence.** Via the ENGRAM event store (Serra, 2026a), humor associations persist across sessions and survive context compaction through pointer-based retrieval, enabling long-term humor memory that outlasts any single conversation.",
   "marked": "[-1. **Cold start → Warm start:**-] {+- **Cold-to-warm start.**+} New agents begin with pattern-based generation [-(§10, Tier 1).-] {+(Section 4).+} As humor associations accumulate, the agent shifts to memory-augmented generation with calibrated confidence. [-2.-] {+-+} **Callback [-automation:**-] {+automation.**+} Humor associations with [-`last_used`-] timestamps make callbacks trivial — query for bridges that landed, [-haven't-] {+have not+} been overused, and fall [-in-] {+within+} the callback sweet [-spot. 3.-] {+spot (Section 3.5). -+} **Inside jokes emerge [-naturally:**-] {+naturally.**+} Repeated successful bridges between the same audience and context become inside jokes — no special mechanism [-needed,-] {+required,+} just high [-`humor_confidence` + moderate `staleness` +-] {+humor confidence combined with+} shared history. [-4.-] {+This formalization supports Flamson and Barrett's (2008) encryption theory: inside jokes are bridges with high audience-specific confidence and low general-audience confidence. -+} **Transfer [-learning between audiences:**-] {+learning.**+} A bridge that [-works for-] {+succeeds with+} multiple audiences gains universal [-humor_confidence, while-] {+confidence;+} audience-specific bridges remain [-personalized.-] {+personalized. - **Cross-session persistence.** Via the ENGRAM event store (Serra, 2026a), humor associations persist across sessions and survive context compaction through pointer-based retrieval, enabling long-term humor memory that outlasts any single conversation.+}"
  },
  {
   "section": "11.7 Implications for the Framework",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "12. Open Questions",
   "old": "## 12. Open Questions",
   "new": null,
   "marked": "[-## 12. Open Questions-]"
  },
  {
   "section": "12. Open Questions",
   "old": "1. ~~**Is the sweet spot [0.6, 0.95] universal?**~~ **Resolved:** No. Shifts with audience familiarity. See §3.2. 2. ~~**Can the bridge be automatically extracted?**~~ **Addressed:** Five approaches in §7. Hybrid pipeline recommended. 3. ~~**How does timing map to embedding operations?**~~ **Resolved:** `callback_bonus(timing)` with decay. See §3.3. 4. **Can we detect humor in input?** Reverse the process — score incoming text for humor_potential. 5. **Cross-lingual humor:** Do the 12 patterns hold across languages? 6. ~~**Empirical validation:**~~ **Addressed:** Methodology in §8. Awaiting execution. 7. **Bridge quality vs. quantity:** Rule of threes suggests multiple bridges may work better than one perfect one. 8. **Adversarial humor:** Can someone game the equation to generate \"technically funny\" but actually unfunny content?",
   "new": null,
   "marked": "[-1. ~~**Is the sweet spot [0.6, 0.95] universal?**~~ **Resolved:** No. Shifts with audience familiarity. See §3.2. 2. ~~**Can the bridge be automatically extracted?**~~ **Addressed:** Five approaches in §7. Hybrid pipeline recommended. 3. ~~**How does timing map to embedding operations?**~~ **Resolved:** `callback_bonus(timing)` with decay. See §3.3. 4. **Can we detect humor in input?** Reverse the process — score incoming text for humor_potential. 5. **Cross-lingual humor:** Do the 12 patterns hold across languages? 6. ~~**Empirical validation:**~~ **Addressed:** Methodology in §8. Awaiting execution. 7. **Bridge quality vs. quantity:** Rule of threes suggests multiple bridges may work better than one perfect one. 8. **Adversarial humor:** Can someone game the equation to generate \"technically funny\" but actually unfunny content?-]"
  },
  {
   "section": "12. Open Questions",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "13. Limitations",
   "old": "## 13. Limitations",
   "new": null,
   "marked": "[-## 13. Limitations-]"
  },
  {
   "section": "9. Limitations",
   "old": null,
   "new": "# 9. Limitations",
   "marked": "{+# 9. Limitations+}"
  },
  {
   "section": "9. Limitations",
   "old": "This framework has several important limitations that bound its claims:",
   "new": "This framework has several important limitations, organized by severity.",
   "marked": "This framework has several important [-limitations that bound its claims:-] {+limitations, organized by severity.+}"
  },
  {
   "section": "13. Limitations",
   "old": "**1. Unvalidated Parameters.** The sweet spot range [0.6, 0.95], sensitivity thresholds, and bridge affinity weights are currently heuristic estimates derived from intuition and informal observation, not empirical measurement. Until the validation protocol (§8) is executed, these values should be treated as initial hypotheses rather than established constants.",
   "new": null,
   "marked": "[-**1. Unvalidated Parameters.** The sweet spot range [0.6, 0.95], sensitivity thresholds, and bridge affinity weights are currently heuristic estimates derived from intuition and informal observation, not empirical measurement. Until the validation protocol (§8) is executed, these values should be treated as initial hypotheses rather than established constants.-]"
  },
  {
   "section": "13. Limitations",
   "old": "**2. Embedding Quality Dependence.** The entire framework assumes that embedding spaces capture semantic relationships with sufficient fidelity for humor operations. In practice, embeddings trained primarily on encyclopedic or conversational text may poorly represent the connotative, cultural, and emotional dimensions that humor exploits. Domain-specific fine-tuning may be required.",
   "new": null,
   "marked": "[-**2. Embedding Quality Dependence.** The entire framework assumes that embedding spaces capture semantic relationships with sufficient fidelity for humor operations. In practice, embeddings trained primarily on encyclopedic or conversational text may poorly represent the connotative, cultural, and emotional dimensions that humor exploits. Domain-specific fine-tuning may be required.-]"
  },
  {
   "section": "13. Limitations",
   "old": "**3. Cultural Specificity.** Our 12 humor patterns and example set draw primarily from English-language, Western humor traditions. Whether these patterns generalize cross-culturally or cross-linguistically remains an open question (§11, item 5). Some humor types (e.g., tonal puns in Mandarin, rakugo narrative structure in Japanese) have no obvious embedding-space analog in our framework. A cross-cultural validation would require: (a) native-speaker raters for each target culture, (b) culturally-grounded concept pairs and bridges, (c) multilingual embedding models (e.g., multilingual-e5-large) to ensure semantic fidelity across languages, and (d) analysis of whether the 12 patterns map onto culture-specific humor taxonomies (e.g., Oring's (2003) categories for Jewish humor, Ruch's (2008) three-component model).",
   "new": null,
   "marked": "[-**3. Cultural Specificity.** Our 12 humor patterns and example set draw primarily from English-language, Western humor traditions. Whether these patterns generalize cross-culturally or cross-linguistically remains an open question (§11, item 5). Some humor types (e.g., tonal puns in Mandarin, rakugo narrative structure in Japanese) have no obvious embedding-space analog in our framework. A cross-cultural validation would require: (a) native-speaker raters for each target culture, (b) culturally-grounded concept pairs and bridges, (c) multilingual embedding models (e.g., multilingual-e5-large) to ensure semantic fidelity across languages, and (d) analysis of whether the 12 patterns map onto culture-specific humor taxonomies (e.g., Oring's (2003) categories for Jewish humor, Ruch's (2008) three-component model).-]"
  },
  {
   "section": "13. Limitations",
   "old": "**4. The Delivery Gap.** `humor_potential` scores raw conceptual combinations but cannot account for delivery — timing, intonation, facial expression, and context that professional comedians exploit. A joke with high `humor_potential` may still fall flat if delivered poorly. Our framework is necessary but not sufficient for humor generation.",
   "new": null,
   "marked": "[-**4. The Delivery Gap.** `humor_potential` scores raw conceptual combinations but cannot account for delivery — timing, intonation, facial expression, and context that professional comedians exploit. A joke with high `humor_potential` may still fall flat if delivered poorly. Our framework is necessary but not sufficient for humor generation.-]"
  },
  {
   "section": "13. Limitations",
   "old": "**5. Computational Cost.** The hybrid bridge-discovery pipeline (§7.6) involves multiple embedding lookups, an LLM fallback, and a sensitivity gate. Real-time humor generation in conversational AI may require aggressive caching and pre-computation to meet latency constraints.",
   "new": null,
   "marked": "[-**5. Computational Cost.** The hybrid bridge-discovery pipeline (§7.6) involves multiple embedding lookups, an LLM fallback, and a sensitivity gate. Real-time humor generation in conversational AI may require aggressive caching and pre-computation to meet latency constraints.-]"
  },
  {
   "section": "13. Limitations",
   "old": "**6. Sensitivity Gate Limitations.** The ethical constraints in §5 rely on category matching and audience modeling, both of which are imperfect. False negatives (harmful jokes passing the gate) and false positives (benign jokes blocked) are both possible. The conservative default errs toward false positives, which may produce an overly cautious — and thus unfunny — system.",
   "new": null,
   "marked": "[-**6. Sensitivity Gate Limitations.** The ethical constraints in §5 rely on category matching and audience modeling, both of which are imperfect. False negatives (harmful jokes passing the gate) and false positives (benign jokes blocked) are both possible. The conservative default errs toward false positives, which may produce an overly cautious — and thus unfunny — system.-]"
  },
  {
   "section": "13. Limitations",
   "old": "**7. No Preliminary Results.** This paper proposes a framework and validation methodology but does not yet present empirical results. We acknowledge this as the primary weakness and a priority for future work.",
   "new": null,
   "marked": "[-**7. No Preliminary Results.** This paper proposes a framework and validation methodology but does not yet present empirical results. We acknowledge this as the primary weakness and a priority for future work.-]"
  },
  {
   "section": "13. Limitations",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "14. Conclusion",
   "old": "## 14. Conclusion",
   "new": null,
   "marked": "[-## 14. Conclusion-]"
  },
  {
   "section": "14. Conclusion",
   "old": "We have presented a formal framework that operationalizes Koestler's bisociation theory as a computable function over vector embeddings. Our central contribution is the insight that **humor and memory retrieval are dual operations on the same infrastructure** — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence.",
   "new": null,
   "marked": "[-We have presented a formal framework that operationalizes Koestler's bisociation theory as a computable function over vector embeddings. Our central contribution is the insight that **humor and memory retrieval are dual operations on the same infrastructure** — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence.-]"
  },
  {
   "section": "14. Conclusion",
   "old": "The framework makes four specific claims: (1) a revised `humor_potential` incorporating surprise-weighted coherence (§8.0) will correlate with human funniness ratings where the naive formula does not; (2) the 12 semantic patterns in §4 provide a useful taxonomy for generating and classifying humor types; (3) the bridge-discovery algorithms in §7 can produce viable comedic connections without human intervention; and (4) humor associations as a first-class memory type (§11) enable agents to learn personalized humor profiles over time, with inside jokes and callbacks emerging naturally from accumulated experience. These claims are testable via the methodology in §8, which we identify as the critical next step.",
   "new": null,
   "marked": "[-The framework makes four specific claims: (1) a revised `humor_potential` incorporating surprise-weighted coherence (§8.0) will correlate with human funniness ratings where the naive formula does not; (2) the 12 semantic patterns in §4 provide a useful taxonomy for generating and classifying humor types; (3) the bridge-discovery algorithms in §7 can produce viable comedic connections without human intervention; and (4) humor associations as a first-class memory type (§11) enable agents to learn personalized humor profiles over time, with inside jokes and callbacks emerging naturally from accumulated experience. These claims are testable via the methodology in §8, which we identify as the critical next step.-]"
  },
  {
   "section": "14. Conclusion",
   "old": "The limitations are significant (§12) — particularly the absence of empirical validation and the cultural specificity of our examples. Nevertheless, the framework offers a principled alternative to template-based and fine-tuning approaches to computational humor, one that is generative, generalizable, and infrastructure-free.",
   "new": null,
   "marked": "[-The limitations are significant (§12) — particularly the absence of empirical validation and the cultural specificity of our examples. Nevertheless, the framework offers a principled alternative to template-based and fine-tuning approaches to computational humor, one that is generative, generalizable, and infrastructure-free.-]"
  },
  {
   "section": "14. Conclusion",
   "old": "The machines don't need to understand humor. They need to understand *distance, bridges, and boundaries*. The laughter follows.",
   "new": null,
   "marked": "[-The machines don't need to understand humor. They need to understand *distance, bridges, and boundaries*. The laughter follows.-]"
  },
  {
   "section": "14. Conclusion",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "References",
   "old": "## References",
   "new": null,
   "marked": "[-## References-]"
  },
  {
   "section": "References",
   "old": "- Bertero, D. & Fung, P. (2016). \"A Long Short-Term Memory Framework for Predicting Humor in Dialogues.\" *NAACL-HLT*. - Binsted, K. & Ritchie, G. (1994). \"An Implemented Model of Punning Riddles.\" *AAAI*. - Flamson, T. & Barrett, H. C. (2008). \"The Encryption Theory of Humor: A Knowledge-Based Mechanism of Honest Signaling.\" *Journal of Evolutionary Psychology*. - Dubitzky, W., Kötter, T., Schmidt, O. & Berthold, M. R. (2012). \"Towards Creative Information Exploration Based on Koestler's Concept of Bisociation.\" *Bisociative Knowledge Discovery*. Springer. - Koestler, A. (1964). *The Act of Creation*. Hutchinson & Co. - Liu, N. F., et al. (2023). \"Lost in the Middle.\" *arXiv:2307.03172*. - Luo, F., et al. (2019). \"Pun-GAN: Generative Adversarial Network for Pun Generation.\" *EMNLP*. - Mikolov, T., et al. (2013). \"Efficient Estimation of Word Representations in Vector Space.\" *arXiv:1301.3781*. - Pereira, F. C., et al. (2019). \"Computational Creativity and Bisociative Concept Blending.\" *Cognitive Computation*. - Ritchie, G. (2004). *The Linguistic Analysis of Jokes*. Routledge. - Stock, O. & Strapparava, C. (2003). \"HAHAcronym: Humorous Agents for Humorous Acronyms.\" *Humor*. - Suls, J. M. (1972). \"A Two-Stage Model for the Appreciation of Jokes and Cartoons.\" *The Psychology of Humor*. - Vrticka, P., Black, J. M. & Reiss, A. L. (2013). \"The Neural Basis of Humour Processing.\" *Nature Reviews Neuroscience*. - Xiao, G., et al. (2023). \"Efficient Streaming Language Models with Attention Sinks.\" *arXiv:2309.17453*. - Yang, D., et al. (2015). \"Humor Recognition and Humor Anchor Extraction.\" *EMNLP*. - Yu, Z., et al. (2018). \"A Neural Approach to Pun Generation.\" *ACL*.",
   "new": null,
   "marked": "[-- Bertero, D. & Fung, P. (2016). \"A Long Short-Term Memory Framework for Predicting Humor in Dialogues.\" *NAACL-HLT*. - Binsted, K. & Ritchie, G. (1994). \"An Implemented Model of Punning Riddles.\" *AAAI*. - Flamson, T. & Barrett, H. C. (2008). \"The Encryption Theory of Humor: A Knowledge-Based Mechanism of Honest Signaling.\" *Journal of Evolutionary Psychology*. - Dubitzky, W., Kötter, T., Schmidt, O. & Berthold, M. R. (2012). \"Towards Creative Information Exploration Based on Koestler's Concept of Bisociation.\" *Bisociative Knowledge Discovery*. Springer. - Koestler, A. (1964). *The Act of Creation*. Hutchinson & Co. - Liu, N. F., et al. (2023). \"Lost in the Middle.\" *arXiv:2307.03172*. - Luo, F., et al. (2019). \"Pun-GAN: Generative Adversarial Network for Pun Generation.\" *EMNLP*. - Mikolov, T., et al. (2013). \"Efficient Estimation of Word Representations in Vector Space.\" *arXiv:1301.3781*. - Pereira, F. C., et al. (2019). \"Computational Creativity and Bisociative Concept Blending.\" *Cognitive Computation*. - Ritchie, G. (2004). *The Linguistic Analysis of Jokes*. Routledge. - Stock, O. & Strapparava, C. (2003). \"HAHAcronym: Humorous Agents for Humorous Acronyms.\" *Humor*. - Suls, J. M. (1972). \"A Two-Stage Model for the Appreciation of Jokes and Cartoons.\" *The Psychology of Humor*. - Vrticka, P., Black, J. M. & Reiss, A. L. (2013). \"The Neural Basis of Humour Processing.\" *Nature Reviews Neuroscience*. - Xiao, G., et al. (2023). \"Efficient Streaming Language Models with Attention Sinks.\" *arXiv:2309.17453*. - Yang, D., et al. (2015). \"Humor Recognition and Humor Anchor Extraction.\" *EMNLP*. - Yu, Z., et al. (2018). \"A Neural Approach to Pun Generation.\" *ACL*.-]"
  },
  {
   "section": "References",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "9.1 Unvalidated Predictive Component",
   "old": null,
   "new": "## 9.1 Unvalidated Predictive Component",
   "marked": "{+## 9.1 Unvalidated Predictive Component+}"
  },
  {
   "section": "9.1 Unvalidated Predictive Component",
   "old": null,
   "new": "The most critical limitation: $h_{\\text{v2}}$ is an untested hypothesis. The pilot study ($n = 15$ concept triplets) demonstrated that naive formulas (v1, v3, v4) fail, and the revised formula is motivated by the failure analysis, but $h_{\\text{v2}}$ has not been validated against human ratings. Until the validation protocol (Section 7.2) is executed, the framework should be treated as a theoretical proposal with empirical protocols, not an empirically validated model.",
   "marked": "{+The most critical limitation: $h_{\\text{v2}}$ is an untested hypothesis. The pilot study ($n = 15$ concept triplets) demonstrated that naive formulas (v1, v3, v4) fail, and the revised formula is motivated by the failure analysis, but $h_{\\text{v2}}$ has not been validated against human ratings. Until the validation protocol (Section 7.2) is executed, the framework should be treated as a theoretical proposal with empirical protocols, not an empirically validated model.+}"
  },
  {
   "section": "9.2 Embedding Model Dependence",
   "old": null,
   "new": "## 9.2 Embedding Model Dependence",
   "marked": "{+## 9.2 Embedding Model Dependence+}"
  },
  {
   "section": "9.2 Embedding Model Dependence",
   "old": null,
   "new": "The framework assumes embeddings capture semantic relationships with sufficient fidelity for humor operations. This assumption is non-trivial. Embedding models must satisfy three requirements:",
   "marked": "{+The framework assumes embeddings capture semantic relationships with sufficient fidelity for humor operations. This assumption is non-trivial. Embedding models must satisfy three requirements:+}"
  },
  {
   "section": "9.2 Embedding Model Dependence",
   "old": null,
   "new": "1. **Semantic compositionality.** The embedding space must represent compositional relationships (analogy arithmetic works), not just distributional co-occurrence. 2. **Connotative coverage.** Embeddings trained on encyclopedic or technical text may poorly represent connotative, cultural, and emotional dimensions that humor exploits. A model trained primarily on Wikipedia may not distinguish \"meeting\" (neutral) from \"meeting\" (dreadful workplace ritual). 3. **Sufficient dimensionality.** In low-dimensional spaces, the concentration of measure phenomenon (Aggarwal et al., 2001) compresses distances, reducing the dynamic range available for the humor zone. We recommend $n \\geq 384$ based on our pilot, but the lower bound may vary by application.",
   "marked": "{+1. **Semantic compositionality.** The embedding space must represent compositional relationships (analogy arithmetic works), not just distributional co-occurrence. 2. **Connotative coverage.** Embeddings trained on encyclopedic or technical text may poorly represent connotative, cultural, and emotional dimensions that humor exploits. A model trained primarily on Wikipedia may not distinguish \"meeting\" (neutral) from \"meeting\" (dreadful workplace ritual). 3. **Sufficient dimensionality.** In low-dimensional spaces, the concentration of measure phenomenon (Aggarwal et al., 2001) compresses distances, reducing the dynamic range available for the humor zone. We recommend $n \\geq 384$ based on our pilot, but the lower bound may vary by application.+}"
  },
  {
   "section": "9.2 Embedding Model Dependence",
   "old": null,
   "new": "The pilot study (Section 7.1) used general-purpose sentence embeddings (MiniLM-L6); domain-adapted, multi-task, or instruction-tuned embeddings may perform differently. The embedding model ablation (Section 7.4) is designed to test this sensitivity.",
   "marked": "{+The pilot study (Section 7.1) used general-purpose sentence embeddings (MiniLM-L6); domain-adapted, multi-task, or instruction-tuned embeddings may perform differently. The embedding model ablation (Section 7.4) is designed to test this sensitivity.+}"
  },
  {
   "section": "9.3 Cultural Specificity",
   "old": null,
   "new": "## 9.3 Cultural Specificity",
   "marked": "{+## 9.3 Cultural Specificity+}"
  },
  {
   "section": "9.3 Cultural Specificity",
   "old": null,
   "new": "Our taxonomy and examples draw primarily from English-language, Western humor traditions. Whether the 12 patterns generalize cross-culturally remains open. Some humor types — tonal puns in Mandarin, *rakugo* narrative structure in Japanese, *dagelan* in Javanese — have no obvious embedding-space analog in our current framework. Cross-cultural validation would require native-speaker raters, culturally grounded stimuli, and multilingual embedding models. Oring's (2003) observation that \"appropriate incongruity\" manifests differently across cultures suggests that the distance sweet spot (Section 3.6) and pattern distributions are culture-dependent. Warren and McGraw (2016) show that different types of violations (moral, social, physical) produce humor at different distances from the benign boundary, suggesting that the sensitivity gate threshold $\\tau$ should vary by violation type, not just topic.",
   "marked": "{+Our taxonomy and examples draw primarily from English-language, Western humor traditions. Whether the 12 patterns generalize cross-culturally remains open. Some humor types — tonal puns in Mandarin, *rakugo* narrative structure in Japanese, *dagelan* in Javanese — have no obvious embedding-space analog in our current framework. Cross-cultural validation would require native-speaker raters, culturally grounded stimuli, and multilingual embedding models. Oring's (2003) observation that \"appropriate incongruity\" manifests differently across cultures suggests that the distance sweet spot (Section 3.6) and pattern distributions are culture-dependent. Warren and McGraw (2016) show that different types of violations (moral, social, physical) produce humor at different distances from the benign boundary, suggesting that the sensitivity gate threshold $\\tau$ should vary by violation type, not just topic.+}"
  },
  {
   "section": "9.4 The Delivery Gap",
   "old": null,
   "new": "## 9.4 The Delivery Gap",
   "marked": "{+## 9.4 The Delivery Gap+}"
  },
  {
   "section": "9.4 The Delivery Gap",
   "old": null,
   "new": "Humor potential scores raw conceptual combinations but cannot account for delivery — timing, intonation, facial expression, and conversational context. A combination with high $h_{\\text{v2}}$ may fail if delivered poorly. Our framework addresses *what* to say, not *how* or *when* to say it. Dynel's (2009) analysis of conversational humor mechanisms highlights the importance of pragmatic context in humor success — a factor our framework does not model.",
   "marked": "{+Humor potential scores raw conceptual combinations but cannot account for delivery — timing, intonation, facial expression, and conversational context. A combination with high $h_{\\text{v2}}$ may fail if delivered poorly. Our framework addresses *what* to say, not *how* or *when* to say it. Dynel's (2009) analysis of conversational humor mechanisms highlights the importance of pragmatic context in humor success — a factor our framework does not model.+}"
  },
  {
   "section": "9.5 Computational Cost",
   "old": null,
   "new": "## 9.5 Computational Cost",
   "marked": "{+## 9.5 Computational Cost+}"
  },
  {
   "section": "9.5 Computational Cost",
   "old": null,
   "new": "The hybrid pipeline (Section 6.7) involves multiple embedding lookups and potentially an LLM fallback. Real-time conversational humor may require aggressive caching and pre-computation. Evaluating $h_{\\text{v2}}(A, B, \\beta)$ end-to-end requires: one cosine distance computation ($O(n)$), two cosine coherence computations ($O(n)$), and one ANN query for the surprise function ($O(n + k \\log N)$ with HNSW, or effectively $O(n)$ with approximate indices). Total per-triplet: $O(n + k \\log N)$ ≈ sub-millisecond for $n = 384$, $k = 100$, $N = 100$K. The bottleneck at scale is the ANN query on the midpoint vector, which at scale ($> 100$K concepts) adds non-trivial latency for exact search but remains fast with approximate indices.",
   "marked": "{+The hybrid pipeline (Section 6.7) involves multiple embedding lookups and potentially an LLM fallback. Real-time conversational humor may require aggressive caching and pre-computation. Evaluating $h_{\\text{v2}}(A, B, \\beta)$ end-to-end requires: one cosine distance computation ($O(n)$), two cosine coherence computations ($O(n)$), and one ANN query for the surprise function ($O(n + k \\log N)$ with HNSW, or effectively $O(n)$ with approximate indices). Total per-triplet: $O(n + k \\log N)$ ≈ sub-millisecond for $n = 384$, $k = 100$, $N = 100$K. The bottleneck at scale is the ANN query on the midpoint vector, which at scale ($> 100$K concepts) adds non-trivial latency for exact search but remains fast with approximate indices.+}"
  },
  {
   "section": "9.6 Sensitivity Gate Limitations",
   "old": null,
   "new": "## 9.6 Sensitivity Gate Limitations",
   "marked": "{+## 9.6 Sensitivity Gate Limitations+}"
  },
  {
   "section": "9.6 Sensitivity Gate Limitations",
   "old": null,
   "new": "Ethical filtering relies on category matching and audience modeling, both imperfect. False negatives (harmful content passing the gate) and false positives (benign content blocked) are both possible. The conservative default errs toward false positives — producing an overly cautious system. See Section 5.5.",
   "marked": "{+Ethical filtering relies on category matching and audience modeling, both imperfect. False negatives (harmful content passing the gate) and false positives (benign content blocked) are both possible. The conservative default errs toward false positives — producing an overly cautious system. See Section 5.5.+}"
  },
  {
   "section": "9.7 Pilot Scale",
   "old": null,
   "new": "## 9.7 Pilot Scale",
   "marked": "{+## 9.7 Pilot Scale+}"
  },
  {
   "section": "9.7 Pilot Scale",
   "old": null,
   "new": "The computational pilot ($n = 15$ triplets) is sufficient to identify a structural flaw in the formula but insufficient for statistical conclusions about $h_{\\text{v2}}$. The pilot tests formula behavior, not human perception.",
   "marked": "{+The computational pilot ($n = 15$ triplets) is sufficient to identify a structural flaw in the formula but insufficient for statistical conclusions about $h_{\\text{v2}}$. The pilot tests formula behavior, not human perception.+}"
  },
  {
   "section": "9.8 GTVH Coverage",
   "old": null,
   "new": "## 9.8 GTVH Coverage",
   "marked": "{+## 9.8 GTVH Coverage+}"
  },
  {
   "section": "9.8 GTVH Coverage",
   "old": null,
   "new": "Our framework maps most directly to Script Opposition and Logical Mechanism in Attardo and Raskin's (1991) GTVH. The remaining four Knowledge Resources — Situation, Target, Narrative Strategy, and Language — are not explicitly modeled. A complete computational humor system would need to address these dimensions as well. See Section 4.6.",
   "marked": "{+Our framework maps most directly to Script Opposition and Logical Mechanism in Attardo and Raskin's (1991) GTVH. The remaining four Knowledge Resources — Situation, Target, Narrative Strategy, and Language — are not explicitly modeled. A complete computational humor system would need to address these dimensions as well. See Section 4.6.+}"
  },
  {
   "section": "9.9 Humor Association Storage",
   "old": null,
   "new": "## 9.9 Humor Association Storage",
   "marked": "{+## 9.9 Humor Association Storage+}"
  },
  {
   "section": "9.9 Humor Association Storage",
   "old": null,
   "new": "At scale, the humor association store could grow significantly. For an agent with 1,000 active users generating 5 humor attempts per day, the store accumulates ~1.8M entries per year. Storage is linear and manageable with standard databases, but retrieval requires efficient indexing by audience, context, and staleness — a secondary engineering challenge.",
   "marked": "{+At scale, the humor association store could grow significantly. For an agent with 1,000 active users generating 5 humor attempts per day, the store accumulates ~1.8M entries per year. Storage is linear and manageable with standard databases, but retrieval requires efficient indexing by audience, context, and staleness — a secondary engineering challenge.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "# 10. Conclusion",
   "marked": "{+# 10. Conclusion+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "We have presented LIMBIC, a formal framework that operationalizes Koestler's (1964) bisociation theory as geometric operations over vector embeddings. Our central contribution is the **memory-humor correspondence**: humor and semantic memory retrieval are operations on the same embedding infrastructure with inverted optimization objectives — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence.",
   "marked": "{+We have presented LIMBIC, a formal framework that operationalizes Koestler's (1964) bisociation theory as geometric operations over vector embeddings. Our central contribution is the **memory-humor correspondence**: humor and semantic memory retrieval are operations on the same embedding infrastructure with inverted optimization objectives — memory seeks proximity, humor seeks calibrated distance bridged by unexpected coherence.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The framework makes five testable claims: (1) the revised $h_{\\text{v2}}$ incorporating surprise-weighted bridge quality will correlate with human funniness ratings where naive cosine-based formulas do not; (2) the 12 semantic patterns organized into five meta-categories provide a useful taxonomy for generating and classifying humor; (3) the bridge discovery algorithms can produce viable comedic connections; (4) humor associations as a first-class memory type in the ENGRAM architecture (Serra, 2026a) enable personalized humor calibration through reinforcement; and (5) belief discrepancies in agent memory constitute a generative source of humor material.",
   "marked": "{+The framework makes five testable claims: (1) the revised $h_{\\text{v2}}$ incorporating surprise-weighted bridge quality will correlate with human funniness ratings where naive cosine-based formulas do not; (2) the 12 semantic patterns organized into five meta-categories provide a useful taxonomy for generating and classifying humor; (3) the bridge discovery algorithms can produce viable comedic connections; (4) humor associations as a first-class memory type in the ENGRAM architecture (Serra, 2026a) enable personalized humor calibration through reinforcement; and (5) belief discrepancies in agent memory constitute a generative source of humor material.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The honest reporting of negative pilot results — and the diagnostic reasoning they enabled — illustrates the value of empirical grounding even at the framework stage. The revised formulation separating bridge validity from bridge surprise emerged directly from understanding *why* the naive formula failed. The systematic exploration of four formula variants (v1–v4) demonstrates that the failure is not in the specific combination function but in the conflation of proximity with comedic validity.",
   "marked": "{+The honest reporting of negative pilot results — and the diagnostic reasoning they enabled — illustrates the value of empirical grounding even at the framework stage. The revised formulation separating bridge validity from bridge surprise emerged directly from understanding *why* the naive formula failed. The systematic exploration of four formula variants (v1–v4) demonstrates that the failure is not in the specific combination function but in the conflation of proximity with comedic validity.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The most important limitation is the absence of large-scale empirical validation. We have provided specific, reproducible protocols (Section 7.2–7.4) with formal power analysis ($N \\geq 64$ raters), inter-rater reliability targets, and cross-embedding-model ablation designs. Existing datasets (SemEval, One-Liners corpus) enable immediate secondary validation. Executing these protocols is the critical next step.",
   "marked": "{+The most important limitation is the absence of large-scale empirical validation. We have provided specific, reproducible protocols (Section 7.2–7.4) with formal power analysis ($N \\geq 64$ raters), inter-rater reliability targets, and cross-embedding-model ablation designs. Existing datasets (SemEval, One-Liners corpus) enable immediate secondary validation. Executing these protocols is the critical next step.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The theoretical foundation suggests a broader principle: the same embedding infrastructure that supports memory retrieval can support multiple cognitive operations — analogy, creativity, humor — through different query strategies on the same geometric structure. Humor is the inverted search; creativity may be the orthogonal one. The SYNAPSE framework (Serra, 2026c) extends this multi-operation perspective to multi-model deliberation, suggesting that cognitive diversity in both embedding spaces and model ensembles is a computational resource to be exploited.",
   "marked": "{+The theoretical foundation suggests a broader principle: the same embedding infrastructure that supports memory retrieval can support multiple cognitive operations — analogy, creativity, humor — through different query strategies on the same geometric structure. Humor is the inverted search; creativity may be the orthogonal one. The SYNAPSE framework (Serra, 2026c) extends this multi-operation perspective to multi-model deliberation, suggesting that cognitive diversity in both embedding spaces and model ensembles is a computational resource to be exploited.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "# References",
   "marked": "{+# References+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "- Aggarwal, C. C., Hinneburg, A. & Keim, D. A. (2001). On the surprising behavior of distance metrics in high dimensional space. *ICDT*. - Amin, M. & Burghardt, M. (2020). A survey on approaches to computational humor generation. *Proceedings of the International Conference on Computational Creativity (ICCC)*. - Attardo, S. & Raskin, V. (1991). Script theory revis(it)ed: Joke similarity and joke representation model. *Humor: International Journal of Humor Research*, 4(3–4), 293–347. - Baker, C. F., Fillmore, C. J. & Lowe, J. B. (1998). The Berkeley FrameNet project. *COLING-ACL*. - Bertero, D. & Fung, P. (2016). A long short-term memory framework for predicting humor in dialogues. *NAACL-HLT*. - Binsted, K. & Ritchie, G. (1994). An implemented model of punning riddles. *AAAI*. - Bowdle, B. F. & Gentner, D. (2005). The career of metaphor. *Psychological Review*, 112(1), 193–216. - Chen, P.-Y. & Soo, V.-W. (2018). Humor recognition using deep learning. *NAACL-HLT*. - Coulson, S. (2001). *Semantic Leaps: Frame-Shifting and Conceptual Blending in Meaning Construction*. Cambridge University Press. - Dubitzky, W., Kötter, T., Schmidt, O. & Berthold, M. R. (2012). Towards creative information exploration based on Koestler's concept of bisociation. *Bisociative Knowledge Discovery*. Springer. - Dynel, M. (2009). Beyond a joke: Types of conversational humour. *Language and Linguistics Compass*, 3(5), 1284–1299. - Flamson, T. & Barrett, H. C. (2008). The encryption theory of humor: A knowledge-based mechanism of honest signaling. *Journal of Evolutionary Psychology*, 6(4), 261–281. - Glucksberg, S. (2001). *Understanding Figurative Language: From Metaphors to Idioms*. Oxford University Press. - Gorwa, R., Binns, R. & Katzenbach, C. (2020). Algorithmic content moderation: Technical and political challenges in the automation of platform governance. *Big Data & Society*, 7(1). - He, H., Peng, N. & Liang, P. (2019). Pun generation with surprise. *NAACL-HLT*. - Hossain, N., Krumm, J. & Gamon, M. (2019). \"President Vows to Cut \\<Taxes\\> Hair\": Dataset and analysis of creative text editing for humorous headlines. *NAACL-HLT*. - Hossain, N., Krumm, J., Gamon, M. & Kautz, H. (2020). SemEval-2020 Task 7: Assessing humor in edited news headlines. *SemEval*. - Hurley, M. M., Dennett, D. C. & Adams, R. B. (2011). *Inside Jokes: Using Humor to Reverse-Engineer the Mind*. MIT Press. - Kao, J. T., Levy, R. & Goodman, N. D. (2016). A computational model of linguistic humor in puns. *Cognitive Science*, 40(5), 1270–1285. - Koestler, A. (1964). *The Act of Creation*. Hutchinson & Co. - Krippendorff, K. (2011). Computing Krippendorff's alpha-reliability. *Annenberg School for Communication Departmental Papers*. - Luo, F., et al. (2019). Pun-GAN: Generative adversarial network for pun generation. *EMNLP*. - Martin, R. A. (2007). *The Psychology of Humor: An Integrative Approach*. Elsevier Academic Press. - McGraw, A. P. & Warren, C. (2010). Benign violations: Making immoral behavior funny. *Psychological Science*, 21(8), 1141–1149. - Mihalcea, R. & Strapparava, C. (2005). Making computers laugh: Investigations in automatic humor recognition. *HLT/EMNLP*. - Mikolov, T., et al. (2013). Efficient estimation of word representations in vector space. *arXiv:1301.3781*. - Oring, E. (2003). *Engaging Humor*. University of Illinois Press. - Pereira, F. C., et al. (2019). Computational creativity and bisociative concept blending. *Cognitive Computation*. - Petrović, S. & Matthews, D. (2013). Unsupervised joke generation from big data. *ACL*. - Raskin, V. (1985). *Semantic Mechanisms of Humor*. D. Reidel Publishing. - Reimers, N. & Gurevych, I. (2019). Sentence-BERT: Sentence embeddings using Siamese BERT-networks. *EMNLP*. - Ritchie, G. (2004). *The Linguistic Analysis of Jokes*. Routledge. - Serra, O. (2026a). ENGRAM: Event-Navigated Graded Retrieval & Archival Memory. *Technical Report, OpenClaw*. - Serra, O. (2026b). CORTEX: Persona-Aware Context Engineering for Persistent AI Identity. *Technical Report, OpenClaw*. - Serra, O. (2026c). SYNAPSE: Synthesized Negotiation Across Provider-Specific Engines. *Technical Report, OpenClaw*. - Stock, O. & Strapparava, C. (2003). HAHAcronym: Humorous agents for humorous acronyms. *Humor*, 16(3), 297–314. - Suls, J. M. (1972). A two-stage model for the appreciation of jokes and cartoons: An information-processing analysis. In J. H. Goldstein & P. E. McGhee (Eds.), *The Psychology of Humor*. Academic Press. - Tian, Y., et al. (2022). A survey on humor recognition: Methods, challenges, and resources. *ACM Computing Surveys*. - Veale, T. (2016). *The Shape of Wit: Computational Models of Creative Metaphor*. Springer. - Vershynin, R. (2018). *High-Dimensional Probability*. Cambridge University Press. - Vrticka, P., Black, J. M. & Reiss, A. L. (2013). The neural basis of humour processing. *Nature Reviews Neuroscience*, 14(12), 860–868. - Warren, C. & McGraw, A. P. (2016). Differentiating what is humorous from what is not. *Journal of Personality and Social Psychology*, 110(3), 407–430. - Weller, O. & Seppi, K. (2019). Humor detection: A transformer gets the last laugh. *EMNLP*. - West, R. & Horvitz, E. (2019). Reverse-engineering satire, or \"Paper on computational humor accepted despite making conditions for rejection\". *AAAI*. - Winters, T., Nys, V. & De Schreye, D. (2021). Computers learning humor. *Proceedings of the International Conference on Computational Creativity (ICCC)*. - Yang, D., et al. (2015). Humor recognition and humor anchor extraction. *EMNLP*. - Yu, Z., et al. (2018). A neural approach to pun generation. *ACL*.",
   "marked": "{+- Aggarwal, C. C., Hinneburg, A. & Keim, D. A. (2001). On the surprising behavior of distance metrics in high dimensional space. *ICDT*. - Amin, M. & Burghardt, M. (2020). A survey on approaches to computational humor generation. *Proceedings of the International Conference on Computational Creativity (ICCC)*. - Attardo, S. & Raskin, V. (1991). Script theory revis(it)ed: Joke similarity and joke representation model. *Humor: International Journal of Humor Research*, 4(3–4), 293–347. - Baker, C. F., Fillmore, C. J. & Lowe, J. B. (1998). The Berkeley FrameNet project. *COLING-ACL*. - Bertero, D. & Fung, P. (2016). A long short-term memory framework for predicting humor in dialogues. *NAACL-HLT*. - Binsted, K. & Ritchie, G. (1994). An implemented model of punning riddles. *AAAI*. - Bowdle, B. F. & Gentner, D. (2005). The career of metaphor. *Psychological Review*, 112(1), 193–216. - Chen, P.-Y. & Soo, V.-W. (2018). Humor recognition using deep learning. *NAACL-HLT*. - Coulson, S. (2001). *Semantic Leaps: Frame-Shifting and Conceptual Blending in Meaning Construction*. Cambridge University Press. - Dubitzky, W., Kötter, T., Schmidt, O. & Berthold, M. R. (2012). Towards creative information exploration based on Koestler's concept of bisociation. *Bisociative Knowledge Discovery*. Springer. - Dynel, M. (2009). Beyond a joke: Types of conversational humour. *Language and Linguistics Compass*, 3(5), 1284–1299. - Flamson, T. & Barrett, H. C. (2008). The encryption theory of humor: A knowledge-based mechanism of honest signaling. *Journal of Evolutionary Psychology*, 6(4), 261–281. - Glucksberg, S. (2001). *Understanding Figurative Language: From Metaphors to Idioms*. Oxford University Press. - Gorwa, R., Binns, R. & Katzenbach, C. (2020). Algorithmic content moderation: Technical and political challenges in the automation of platform governance. *Big Data & Society*, 7(1). - He, H., Peng, N. & Liang, P. (2019). Pun generation with surprise. *NAACL-HLT*. - Hossain, N., Krumm, J. & Gamon, M. (2019). \"President Vows to Cut \\<Taxes\\> Hair\": Dataset and analysis of creative text editing for humorous headlines. *NAACL-HLT*. - Hossain, N., Krumm, J., Gamon, M. & Kautz, H. (2020). SemEval-2020 Task 7: Assessing humor in edited news headlines. *SemEval*. - Hurley, M. M., Dennett, D. C. & Adams, R. B. (2011). *Inside Jokes: Using Humor to Reverse-Engineer the Mind*. MIT Press. - Kao, J. T., Levy, R. & Goodman, N. D. (2016). A computational model of linguistic humor in puns. *Cognitive Science*, 40(5), 1270–1285. - Koestler, A. (1964). *The Act of Creation*. Hutchinson & Co. - Krippendorff, K. (2011). Computing Krippendorff's alpha-reliability. *Annenberg School for Communication Departmental Papers*. - Luo, F., et al. (2019). Pun-GAN: Generative adversarial network for pun generation. *EMNLP*. - Martin, R. A. (2007). *The Psychology of Humor: An Integrative Approach*. Elsevier Academic Press. - McGraw, A. P. & Warren, C. (2010). Benign violations: Making immoral behavior funny. *Psychological Science*, 21(8), 1141–1149. - Mihalcea, R. & Strapparava, C. (2005). Making computers laugh: Investigations in automatic humor recognition. *HLT/EMNLP*. - Mikolov, T., et al. (2013). Efficient estimation of word representations in vector space. *arXiv:1301.3781*. - Oring, E. (2003). *Engaging Humor*. University of Illinois Press. - Pereira, F. C., et al. (2019). Computational creativity and bisociative concept blending. *Cognitive Computation*. - Petrović, S. & Matthews, D. (2013). Unsupervised joke generation from big data. *ACL*. - Raskin, V. (1985). *Semantic Mechanisms of Humor*. D. Reidel Publishing. - Reimers, N. & Gurevych, I. (2019). Sentence-BERT: Sentence embeddings using Siamese BERT-networks. *EMNLP*. - Ritchie, G. (2004). *The Linguistic Analysis of Jokes*. Routledge. - Serra, O. (2026a). ENGRAM: Event-Navigated Graded Retrieval & Archival Memory. *Technical Report, OpenClaw*. - Serra, O. (2026b). CORTEX: Persona-Aware Context Engineering for Persistent AI Identity. *Technical Report, OpenClaw*. - Serra, O. (2026c). SYNAPSE: Synthesized Negotiation Across Provider-Specific Engines. *Technical Report, OpenClaw*. - Stock, O. & Strapparava, C. (2003). HAHAcronym: Humorous agents for humorous acronyms. *Humor*, 16(3), 297–314. - Suls, J. M. (1972). A two-stage model for the appreciation of jokes and cartoons: An information-processing analysis. In J. H. Goldstein & P. E. McGhee (Eds.), *The Psychology of Humor*. Academic Press. - Tian, Y., et al. (2022). A survey on humor recognition: Methods, challenges, and resources. *ACM Computing Surveys*. - Veale, T. (2016). *The Shape of Wit: Computational Models of Creative Metaphor*. Springer. - Vershynin, R. (2018). *High-Dimensional Probability*. Cambridge University Press. - Vrticka, P., Black, J. M. & Reiss, A. L. (2013). The neural basis of humour processing. *Nature Reviews Neuroscience*, 14(12), 860–868. - Warren, C. & McGraw, A. P. (2016). Differentiating what is humorous from what is not. *Journal of Personality and Social Psychology*, 110(3), 407–430. - Weller, O. & Seppi, K. (2019). Humor detection: A transformer gets the last laugh. *EMNLP*. - West, R. & Horvitz, E. (2019). Reverse-engineering satire, or \"Paper on computational humor accepted despite making conditions for rejection\". *AAAI*. - Winters, T., Nys, V. & De Schreye, D. (2021). Computers learning humor. *Proceedings of the International Conference on Computational Creativity (ICCC)*. - Yang, D., et al. (2015). Humor recognition and humor anchor extraction. *EMNLP*. - Yu, Z., et al. (2018). A neural approach to pun generation. *ACL*.+}"
  }
 ]
}
