Skip to content
← RageBuilder Punchline Labv1.0

Punchline Lab

Deconstruct the mechanics of humor. Build jokes from structural components, visualize the setup→punchline relationship, and master the 12 classic joke architectures.

📚 Joke Library

Click any joke to load it into the structure analyzer. Each joke is tagged with its primary structural mechanism.

🏗️ The 12 Classic Joke Architectures

Every joke is built from a structural blueprint. Click a structure to see how it works.

🔨 Joke Builder

Write a setup and punchline, then get structural feedback. The analyzer looks at length balance, setup-punchline contrast, and structural patterns.

Setup
Punchline

🧬 The Anatomy of a Joke

A joke is not just a funny sentence. It's a machine — a small cognitive engine that sets up an expectation and then breaks it. Here are the five core components every joke uses:

1. Premise

The underlying idea or situation. "A man walks into a bar." The premise creates a context the listener accepts without question.

2. Frame

The mental model the setup activates. "If a man walks into a bar, he's probably going to order a drink or talk to the bartender." The frame is a prediction.

3. Misdirection

The detail that leads the listener down the wrong path. "The bartender says..." makes you expect a bar-related exchange. Not every joke has an explicit misdirection — sometimes the frame itself is the misdirection.

4. Punchline

The payload. It either subverts the frame (the opposite of what you expected), escalates it (the same logic taken to an absurd extreme), or reveals a hidden connection (the setup and punchline share a word or idea you didn't notice).

5. Callback

Optional. A reference back to an earlier element of the joke that now means something different. In stand-up, callbacks to earlier jokes in a set create a "bookend" effect that's one of the strongest tools a comedian has.

⚡ Why It Works: Incongruity Theory

The dominant theory of humor is incongruity-resolution: a joke works when it creates a contradiction (incongruity) that the listener's brain resolves in an unexpected way (resolution). The "aha" moment of laughter is the moment of resolution.

The key insight: the resolution must be retroactive. You have to re-read the setup and realize it was pointing somewhere else the whole time. If the punchline just introduces new information, it's not a joke — it's a fact.

This is why "I told my wife she was drawing her eyebrows too high. She looked surprised." works: "surprised" is both an emotion (the frame) and a physical description of high eyebrows (the resolution). The retroactive re-reading is the joke.