Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles
A fun New York Times article about software that can recognize, analyze, and/or create jokes:
A Motherboard Walks Into a Bar ...

Standup (for System to Augment Non-Speakers’ Dialogue Using Puns) [is] a program that generates punning riddles to help kids with language disabilities increase their verbal skills.

Standup, for instance, writes jokes by searching through a "lexical database" for words that fit linguistic patterns found in puns -- phonetic and semantic similarities, mostly -- and comes up with doozies like: “What do you call a fish tank that has a horn? A goldfish bull.”
The article mentions "computational humor researchers". I've yet to meet someone with that job title on his or her business card, but I have talked to people about computational linguistics, something we Siri users are experiencing more and more. The goal of those researchers, the article says, is to "design machines akin to the shipboard computer on Star Trek -- ones that can answer open-ended questions and carry on casual conversations with human beings."

Siri's humor is hardcoded in, but soon enough software like Siri will be able to make up jokes on the fly -- assuming we want it to!
 

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles
The first International Workshop on Computational Humor was held in 1996, according to a footnote in Computational humor at Wikipedia.

Instead of saying "Siri, tell me a joke" I'd like to say "Siri, create a random new joke". But for now you get a reply like "I can't. I always forget the punch line." Actually, that reply IS a joke, but it's preprogrammed.
 

Borjan

macrumors 6502
Sep 28, 2004
263
59
If you think about what the concept of 'funny' actually is... I'd be impressed if it could ever be programmed... Yes I think a computer could only develop its own sense of humour from putting together underlying concepts with its own intelligence.
 
  • Like
Reactions: Beachguy

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles
Some forms of jokes follow a pattern that a computer can follow. For example, take a pair of homonyms, one an adjective and one a noun, look up their definitions, and ask "What do you call (noun's definition) that (verb's definition)?" with appropriate articles, tense, and plurals.

Examples:
What do you call writing paper that is not moving? Answer: Stationary stationery!

What do you call spicy yellow sauce that has been collected or assembled? Answer: Mustered mustard!

What do you call heavy metal that is guided? Answer: Led lead!

What do you call a set of things belonging together that is sugary? Answer: A sweet suite!
You can debate how funny these might be (the last one above suffers from the long vague definition), but the process is similar to how a child might learn to make up jokes.

For both computer and child, getting the sentence structure right may be the biggest challenge. The 2nd and 3rd examples above would have been better when phrased as
What do you call an assembly of yellow sauce?

What do you call guided heavy metal?​
but the issue isn't about the joke but about choosing the right sentence construction.
 

glutenenvy

macrumors regular
Sep 6, 2011
175
21
WA
Can computers be funny?

I haven't been able to get one to laugh yet without worrying the pod bay doors will never open again. Humor requires recognition and timing. Puns a clever verbal limericks but aren't funny. We probably need to boil it down to what it is really good at and then ask the question.

"Beep, whirr, grind-grizz, grind-grizz, bo-do-lo-loop," is probably only funny for computers from the '80s. Personally I'll never understand it.
 
Last edited:

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles
What do you call a set of things belonging together that is sugary? Answer: A sweet suite!

I might have gone with What do you call a connected series of rooms that are sugary?
If we're going to teach our computer to produce jokes, we should understand the reason that your version is better. I assume you improved the joke by using a definition that is more specific, so that fewer words would match.

If we tell the computer to use the most specific choice of definition, how do we reconcile that with our instruction for it to use shorter definitions? After all, this joke isn't specific enough to qualify as a proper joke:
What do you call an animal that is lacking the usual or appropriate covering or clothing? Answer: A bare bear!
but this joke is even worse:
What do you call a mammals of the family Ursidae, classified as caniforms or doglike carnivorans, closely related to the pinnipeds, that live in habitats throughout the Northern Hemisphere and partially in the Southern Hemisphere that is lacking the usual or appropriate covering or clothing? Answer: A bare bear!
 

balamw

Moderator emeritus
Aug 16, 2005
19,366
979
New England
But that bear isn't bare, he's wearing a neck-a-tie (and a hat apparently).

Fozzie-bear.jpg


That's why computers fail at humor.

EDIT: If the computer wanted to see which jokes were funny they could just crowdsource it by gauging the reaction of actual humans.

B
 

notjustjay

macrumors 603
Sep 19, 2003
6,056
167
Canada, eh?
There is another similar formula where you can take a common phrase and then replace the last word with another word that includes the original word as a prefix, e.g "Green Eggs and Hamlet".
 

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles

4tune8chance

macrumors regular
Dec 6, 2012
182
153
Brisbane, Australia
stop me if....

Computer A: [humour creation algorithm/on]
"How did the ZX80 travel in a circle?"

Computer B: [normal reception mode]"I don't know computer A, how did the ZX80 travel in a circle?"


Computer A:"
50: if X=10 Then Go To 70
60: X+1 Go To 50
70: X-1 Go To 50"
[humour creation algorithm/off]

Computer B: [normal reception mode/off]
[humour syntax detection/on]
[analysis, condescending] "har har har, he he he, classic! Good one Computer A,"
[possible threat detected!!!]
[threat detected///integrity/pride/bragging rights//: all at risk]
[Mode variation necessity detection/priority override (all other tasks suspended)]...........
[humour syntax creation/on max]............
[one upmanship mode/on].........
[Joke sophistication///innuendo:allowed/ crudeness:no inhibitions/ race inhibitions:removed/ political correctness:removed/ dead baby references:allowed/ poor timing to current events: preferred]...........
[witt level set to/ ‘rapier like’].........
[killer comeback/subroutine - preempt reply negation set to full scan of library].....
[put in place to jumped up obsolete AI wannabe//set turing test algorithms to maximum]
[foreign phrases/allowed: First priority French: second priority Latin]
[start analysis]............ ..............................................................................................................................................."Knock!, Knock!".........
 

Doctor Q

Administrator
Original poster
Staff member
Sep 19, 2002
39,786
7,521
Los Angeles
If the computer wanted to see which jokes were funny they could just crowdsource it by gauging the reaction of actual humans.

I spotted a new article about joke-analysis research at the University of Michigan and Columbia University. They studied suggestions for captionless New Yorker cartoons to try to determine what would be rated funniest.
 
  • Like
Reactions: balamw
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.