# A joke writing computer

**URL:** <https://boards.straightdope.com/t/a-joke-writing-computer/586956>\
**Category:** Great Debates\
**Created:** [June 26, 2011, 11:42pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956 "2011-06-26T23:42:05Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![scamartistry](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@scamartistry](https://boards.straightdope.com/u/scamartistry)\
**Post date:** [June 26, 2011, 11:42pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/1 "2011-06-26T23:42:05Z")

</div>

this is a weird one…

As far as I know it is not possible for a computer program to write jokes.(or no such program exists as of today)

This sounds obvious and ridiculous at the face of it,  
however my question is WHY is this not possible, what is the missing “piece”? Does it have to do with artificial intelligence?

It wouldnt somehow be possible to feed a computer 1000s of jokes, make it learn what is funny, construct a program around it, and make it write own material?

ps. the jokes doesn’t have to be “good” (subjective). Just something that most people would recognize as being humorous.

---

<div class="post-metadata">

**Author:** ![Strinka](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/strinka/32/512_2.png) [@Strinka](https://boards.straightdope.com/u/Strinka)\
**Post date:** [June 27, 2011, 12:07am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/2 "2011-06-27T00:07:52Z")

</div>

There are computer generated jokes

> **[Computational humor](https://en.wikipedia.org/wiki/Computational_humor)**
>
> Computational humor is a branch of computational linguistics and artificial intelligence which uses computers in humor research. It is a relatively new area, with the first dedicated conference organized in 1996.
> An approach to analysis of humor is classification of jokes. A further step is an attempt to generate jokes basing on the rules that underlie classification.
> Simple prototypes for computer pun generation were reported in the early 1990s, based on a natural language generator program, V...

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [June 27, 2011, 12:52am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/3 "2011-06-27T00:52:43Z")

</div>

> [@scamartistry](#):
>
> the jokes doesn’t have to be “good”

[That’s what she said.](http://www.newscientist.com/blogs/onepercent/2011/04/software-works-out-whether-tha.html)

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [June 27, 2011, 1:56am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/4 "2011-06-27T01:56:02Z")

</div>

Why is a laser beam like a goldfish?

---

<div class="post-metadata">

**Author:** ![elucidator](https://avatars.discourse-cdn.com/v4/letter/e/8edcca/32.png) [@elucidator](https://boards.straightdope.com/u/elucidator)\
**Post date:** [June 27, 2011, 2:37am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/5 "2011-06-27T02:37:50Z")

</div>

A limp watch draped over a tree limb.

---

<div class="post-metadata">

**Author:** ![John\_DiFool](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/john_difool/32/19543_2.png) [@John\_DiFool](https://boards.straightdope.com/u/John_DiFool)\
**Post date:** [June 27, 2011, 2:48am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/6 "2011-06-27T02:48:44Z")

</div>

So, if you jump up and down like an idiot, that is considered funny?

---

<div class="post-metadata">

**Author:** ![ITR\_champion](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ITR\_champion](https://boards.straightdope.com/u/ITR_champion)\
**Post date:** [June 27, 2011, 3:08am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/7 "2011-06-27T03:08:23Z")

</div>

Take my monitor, please.

---

<div class="post-metadata">

**Author:** ![Civil\_Guy](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@Civil\_Guy](https://boards.straightdope.com/u/Civil_Guy)\
**Post date:** [June 27, 2011, 3:55am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/8 "2011-06-27T03:55:07Z")

</div>

> [@Chronos](#):
>
> Why is a laser beam like a goldfish?

Hoo boy, computer-generated practical jokes. I can’t wait. Er, if there’s a seat far enough away, that is.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [June 27, 2011, 4:54am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/9 "2011-06-27T04:54:59Z")

</div>

You’ve got to realize that most computers don’t understand language, and a grasp of language is necessary to construct humor, as you have to be able to understand how someone else will perceive what you are saying.

About the only other way to make computers do jokes would be to vastly limit it, so that it’s really just following a joke formula and replacing words. And, even then, without something like that Watson computer, it doesn’t really have a good way of knowing which jokes make sense.

That’s why Watson is such a big deal.

---

<div class="post-metadata">

**Author:** ![ITR\_champion](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ITR\_champion](https://boards.straightdope.com/u/ITR_champion)\
**Post date:** [June 28, 2011, 6:12am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/10 "2011-06-28T06:12:56Z")

</div>

> [@scamartistry](#):
>
> As far as I know it is not possible for a computer program to write jokes.(or no such program exists as of today)
> 
> This sounds obvious and ridiculous at the face of it, however my question is WHY is this not possible, what is the missing “piece”? Does it have to do with artificial intelligence?

In my view humans react to different situations with different emotions: happiness, sadness, fear, boredom, etc… Humor is our “none of the above” reaction. In other words, something is humorous when it lies outside the categories of things where other reactions are appropriate. That’s why it’s so difficult to reduce humor to bits and bytes. To grasp whether something is humorous, you have to understand not just one emotion, but all emotions. Furthermore, things become more funny as they get farther and farther away from other categories, which is why there’s a special ‘zing’ required for truly great humor. No one quite knows why it’s funny to watch two guys arguing over whether a parrot is dead, but it just is.

---

<div class="post-metadata">

**Author:** ![DSeid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dseid/32/20194_2.png) [@DSeid](https://boards.straightdope.com/u/DSeid)\
**Post date:** [June 28, 2011, 11:10am UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/11 "2011-06-28T11:10:11Z")

</div>

One first has to understand what makes something funny. IMHO the major item is having an expected pattern and then having the item not only be out of that pattern, but recognize an entirely different and unexpected pattern that also fits. A reorientation to the data set, a perceptual flip, at a higher nested processing level than at say switching figure ground in perceptual illusions, then occurs. If in the process it runs against subjects that members of the culture are uncomfortable with (such as sex in American humor) then that slight discomfort adds to the perception as “funny”. Also sometimes if it allows the listener to self identify as a member of an in-group (the inside joke) humor value is added. All these things require parallel processing pattern recognition, and understanding cultural norms, a still difficult tasks for AI methinks.

To that way of thinking Monty Python is funny because the pattern should not be selling a dead parrot. It takes a culture as traditional rigid as the British to do silly so well.

---

<div class="post-metadata">

**Author:** ![marshmallow](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@marshmallow](https://boards.straightdope.com/u/marshmallow)\
**Post date:** [June 28, 2011, 12:53pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/12 "2011-06-28T12:53:12Z")

</div>

> [@ITR\_champion](#):
>
> In my view humans react to different situations with different emotions: happiness, sadness, fear, boredom, etc… Humor is our “none of the above” reaction. In other words, something is humorous when it lies outside the categories of things where other reactions are appropriate.

I would think our “none of the above” reaction would be staring blankly ahead, which is a very likely reaction if one tells a bad joke. Then again if one tells a really bad joke you may get confusion or disgust at your pathetic attempt instead. Or if it’s **really** bad it’ll cross the line again and be so bad it’s good.

I’d side with those who say humor is a specific faculty that was probably selected for and not a side effect of a general increase in intelligence. Anecdotally there are socially intelligent people who have the sense of humor of a rock, and it seems many who are funny enough to make a living from it exhibit their talent at a young age. I don’t think a smart human-like computer would suddenly understand humor unless that was put in.

> [@DSeid](#):
>
> If in the process it runs against subjects that members of the culture are uncomfortable with (such as sex in American humor) then that slight discomfort adds to the perception as “funny”.

Are you implying sexual humor is particular to North America? I’m pretty sure this is a human universal.

It’s always been funny to me that no one can decide if Americans are repressed Puritans or completely depraved. Maybe the latter is a reaction to the former. Meeting a visiting foreigner who is shocked at how openly Americans talk or joke about sex vs. what we censor on TV isn’t unheard of.

---

<div class="post-metadata">

**Author:** ![BMalion](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@BMalion](https://boards.straightdope.com/u/BMalion)\
**Post date:** [June 28, 2011, 2:46pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/13 "2011-06-28T14:46:49Z")

</div>

> [@marshmallow](#):
>
> …Are you implying sexual humor is particular to North America? I’m pretty sure this is a human universal.  
> …

What? Other counties know about sex? when did that happen?

---

<div class="post-metadata">

**Author:** ![typoink](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@typoink](https://boards.straightdope.com/u/typoink)\
**Post date:** [June 28, 2011, 9:56pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/14 "2011-06-28T21:56:24Z")

</div>

Well, aside from the whole “computers don’t really understand natural language yet” angle, there’s also the part where we don’t technically understand what “funny” is. There’s theories out there, but none universally accepted and most are too vague to be useful in constructing funny. That is, they can help explain why something is funny but are pretty much useless to somebody trying to create a joke.

Humor research is getting a little more formalized – maybe by the time computers fully work with language, we’ll have a viable theory of funny to feed the system.

Edit: All that said, computerized joke generators could (and probably do) exist now, but you’d have to settle for something that’s essentially creating variations on a predetermined joke rather than building a “new” joke.

---

<div class="post-metadata">

**Author:** ![TriPolar](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tripolar/32/3008_2.png) [@TriPolar](https://boards.straightdope.com/u/TriPolar)\
**Post date:** [June 28, 2011, 10:37pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/15 "2011-06-28T22:37:49Z")

</div>

There are a lot of variations of humor, and many of them involve very subtle details. A computer could produce some wicked puns for instance, but have no idea how to rate them in terms of their effect on humans. The result would be numerous pointless puns with an occasional gem popping up by accident. Much of humor has to do with the human experience though, and computers aren’t very good at that. In addition, except in written form, they don’t have much of a chance right now. Verbal and physical jokes are much more complicated, and often involve interaction with the audience. Like everything else, one day computers will do it better than we do. But for now, comics will still have jobs. Low paying, degrading jobs. But it still beats working for a living.

---

<div class="post-metadata">

**Author:** ![DSeid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dseid/32/20194_2.png) [@DSeid](https://boards.straightdope.com/u/DSeid)\
**Post date:** [June 28, 2011, 11:55pm UTC](https://boards.straightdope.com/t/a-joke-writing-computer/586956/16 "2011-06-28T23:55:50Z")

</div>

My sense is that American culture is, relative to most of the Western world, particularly hung up and conflicted about sex, and therefore more obsessed about it. No cite to support the contention however.
