[Subject] Could Eat [Object] All Day. That’s What She Said.

Slate's Culture Blog
May 3 2011 10:47 AM

[Subject] Could Eat [Object] All Day. That’s What She Said.

1317160666601

If you have a shaky sense of comic timing (and you're a little immature), there's good news from the University of Washington. As the New Scientist's One Per Cent blog reported on Friday, researchers have developed a computer program that helps you identify the perfect opening for a "that's what she said" joke.

Katy Waldman Katy Waldman

Katy Waldman is a Slate staff writer. 

Computer scientists Chloé Kiddon and Yuriy Brun are interested in how humans recognize double entendres and whether machines can learn to do the same. Spotting double entendres requires "both deep semantic and cultural understanding," they write (PDF). As Kiddon explained in an interview, a double entendre is really a type of metaphor that brings together two conceptual realms: one straight-laced and one raunchy. So "that's what she said" jokes aren't just crude, cheap ways to get a laugh-they're also fertile testing ground for whether computers can be trained to "think" metaphorically about language, the way humans do.  

Advertisement

Kiddon and Brun define a TWSS as a sentence that is funny when followed by the phrase "That's what she said." Telltale TWSS markers include 1) the presence of nouns that are often euphemisms for more sexually suggestive nouns and 2) syntactical structures common to X-rated literature. The researchers give banana as one example of a seemingly respectable noun that could moonlight in porn writing. For racy syntax, they offer "[subject] stuck [object] in" and "[subject] could eat [object] all day."

To train their computer program, DEviaNT (Double Entendre via Noun Transfer), which assesses the TWSS potential of individual statements, Kiddon and Brun gathered 1.5 million sentences from erotic literature and 57,000 from more mainstream texts, such as Barry Goldwater's 1961 essay "A Foreign Policy for America" (which is just chock-full of euphemistic eroticism, we're sure). By analyzing big swathes of lexical content, DEviaNT began to learn which terms frequently appear together in risqué contexts thus indicating a potential TWSS and which tend to cluster in more decorous settings. The program then honed its skills on 2,000 sentences from twssstories.com, an online forum for "That's what she said" jokes; more practice came courtesy of fmylife.com, textsfromlastnight.com, and wikiquotes.

DEviaNT uses an "adjective sexiness function," or AS(a), and a "verb sexiness function," or VS(v), to gauge the likelihood that a given sentence will work as a TWSS. For example, suck has a high VS(v), while sweep has a low one. Kiddon and Brun created the functions by studying the modifiers and verbs that typically orbit a pool of 76 explicit, predetermined nouns, most of which describe sexual body parts. (A sentence that actually contained one of those 76 words is unlikely to be a TWSS, though, since it wouldn't be euphemistic enough.)

Now that it's been properly trained, you can feed DEviaNT a string of text, and it can tell you whether tacking on the four magic words will result in hilarity. At the moment, the program has about the same dirty-joke-telling ability as a 12-year-old boy: The researchers write that it can pick out TWSS set-ups with around 70 percent accuracy. But that number would increase to 99.5 percent, Kiddon explains, if every sentence had a 50 percent likelihood of being a TWSS, thus giving the computer more positive results to work with. (As it is, a very small fraction of spoken and written statements make the cut). Now that even computers are engaging in frat-style mockery, we're just waiting for an iPhone app that automatically adds "between the sheets" to our fortune cookie fortunes.

For a look at TWSS in action, check out this highlight reel from The Office.


Follow Brow Beat on Twitter. For more culture coverage, like Slate Culture on Facebook.

   

TODAY IN SLATE

Medical Examiner

Here’s Where We Stand With Ebola

Even experienced international disaster responders are shocked at how bad it’s gotten.

It’s Legal for Obama to Bomb Syria Because He Says It Is

Divestment Is Fine but Mostly Symbolic. There’s a Better Way for Universities to Fight Climate Change.

I Stand With Emma Watson on Women’s Rights

Even though I know I’m going to get flak for it.

It Is Very Stupid to Compare Hope Solo to Ray Rice

Building a Better Workplace

In Defense of HR

Startups and small businesses shouldn’t skip over a human resources department.

Why Are Lighter-Skinned Latinos and Asians More Likely to Vote Republican?

How Ted Cruz and Scott Brown Misunderstand What It Means to Be an American Citizen

  News & Politics
Politics
Sept. 23 2014 12:43 PM Occupy Wall Street How can Hillary Clinton be both a limousine liberal and a Saul Alinsky radical?
  Business
Moneybox
Sept. 23 2014 2:08 PM Home Depot’s Former Head of Security Had a Legacy of Sabotage
  Life
Outward
Sept. 23 2014 1:57 PM Would A Second Sarkozy Presidency End Marriage Equality in France?
  Double X
The XX Factor
Sept. 23 2014 11:13 AM Why Is This Mother in Prison for Helping Her Daughter Get an Abortion?
  Slate Plus
Slate Plus
Sept. 22 2014 1:52 PM Tell Us What You Think About Slate Plus Help us improve our new membership program.
  Arts
Brow Beat
Sept. 23 2014 11:48 AM Punky Brewster, the Feminist Punk Icon Who Wasn’t
  Technology
Future Tense
Sept. 23 2014 1:50 PM Oh, the Futility! Frogs Try to Catch Worms Off of an iPhone Video.
  Health & Science
Science
Sept. 23 2014 1:38 PM Why Is Fall Red in America but Yellow in Europe? A possible explanation, 35 million years in the making.
  Sports
Sports Nut
Sept. 18 2014 11:42 AM Grandmaster Clash One of the most amazing feats in chess history just happened, and no one noticed.