Author Topic: Program 'bots that understand (get) puns!  (Read 1291 times)

Offline gunug

  • TS Addict
  • *****
  • Posts: 6710
  • TS Palindrome
    • View Profile
Program 'bots that understand (get) puns!
« on: August 02, 2007, 04:12:58 PM »
QUOTE
Now Julia Taylor and Lawrence Mazlack of the University of Cincinnati in Ohio have built a computer program or "bot" that is able to get a specific type of joke - one whose crux is a simple pun. They say this budding cyber wit could lend a sense of humour to physical robots acting as human companions or helpers, which will need to be able to spot jokes if they are to be accepted and not just annoy people. The bot is also teasing apart why some people laugh at a joke, such as the one above, when most just groan.

To teach the program to spot jokes, the researchers first gave it a database of words, extracted from a children's dictionary to keep things simple, and then supplied examples of how words can be related to one another in different ways to create different meanings. When presented with a new passage, the program uses that knowledge to work out how those new words relate to each other and what they likely mean. When it finds a word that doesn't seem to fit with its surroundings, it searches a digital pronunciation guide for similar-sounding words. If any of those words fits in better with the rest of the sentence, it flags the passage as a joke. The result is a bot that "gets" jokes that turn on a simple pun.

http://www.newscientisttech.com/channel/te...=mg19526156.400


Now if I can get it to intercept the puns so I don't have to hear them!  smile.gif
« Last Edit: August 02, 2007, 04:14:17 PM by gunug »
"If there really is no beer in heaven then maybe at least the
computers will work all of the time!"

Offline jwboyd

  • Super Duper Poster
  • ****
  • Posts: 912
    • View Profile
    • http://
Program 'bots that understand (get) puns!
« Reply #1 on: August 02, 2007, 04:45:07 PM »
A baker took great pride in running a high-class establishment. He sold rolls, bagels, donuts, scones, pies, cakes, loaves of bread, and just about every other form of bakery product. But he would not make and sell buns because, he explained, "A bun is the lowest form of wheat!"
I'm not a complete idiot -- a few parts are missing!

Offline gunug

  • TS Addict
  • *****
  • Posts: 6710
  • TS Palindrome
    • View Profile
Program 'bots that understand (get) puns!
« Reply #2 on: August 06, 2007, 06:33:39 AM »
Oh, if I'm to be punished:

King Ozymandias of Assyria was running low on cash after years of war with the Hittites. His last great possession was the Star of the Euphrates, the most valuable diamond in the ancient world. Desperate, he went to Croesus, the pawnbroker, to ask for a loan.

Croesus said, "I'll give you 100,000 dinars for it."

"But I paid a million dinars for it," the King protested. "Don't you know who I am? I am the king!"

Croesus replied, "When you wish to pawn a Star, makes no difference who you are."


It might has well be for a good reason.  I'm sure I remember this as one of the earliest puns I've heard (slightly different trappings on it then)!  
"If there really is no beer in heaven then maybe at least the
computers will work all of the time!"

Offline Gregg

  • TS Addict
  • *****
  • Posts: 11748
    • View Profile
    • http://
Program 'bots that understand (get) puns!
« Reply #3 on: August 06, 2007, 07:39:19 AM »
You should have entered that one in the pun contest. They had 10 finalists, and everyone expected one of them to take the prize, but no pun in ten did.
Ya gotta applaud those bunnies for sacrificing their hearing just so some guy in Cupertino can have better TV reception.