Meet the Robot Writing ‘Friends’ Sequels
Sure, a lot of the dialogue Andy Herd’s recurrent neural network comes up with is nonsense. But some of it is magic.

Photo Illustration by Emil Lendof/The Daily Beast
Get the Beast Digest newsletter delivered straight to your inbox
By clicking “SIGN UP” you agree to our Terms of Use and Privacy Policy.
Somewhere deep within Andy Herd’s computer exists the funniest Friends episode in the world. He just hasn’t seen it yet.
He has, however, been rewarded with random snippets like this:
“Chandler: (in a muffin) (Runs to the girls to cry) Can I get some presents.”
That’s part of a script that was automatically generated on Herd’s computer this weekend. He fed every Friends script into a thing called a recurrent neural network—which can learn sequences and begin to process them.
“It works by predicting the next letter to follow a given sequence of letters, and the predictions are determined by what it learned about language from the Friends dialogue provided,” he told The Daily Beast.
In other words, he fed Friends into something that can eventually make more Friends.
“It can generate stuff within minutes, but it’s barely English,” said Herd. “A lot of it is still nonsense.”
Then, after about 12 hours, magic happened.
Behold, the best scene in the history of Friends, courtesy of Herd’s new robot:
[Scene: Central Perk, marcel drops. Monica is blowing Chandler who is having lunch as Ross enters.]
Chandler: Yes.
Herd, who’s a software developer and online cartoonist of the popular web comic Pandyland, decided he’d post examples of his Ross & Rachel Fanfiction Machine late Monday night on Twitter. His post now has over 3,000 retweets.
i fed a recurrent neural network with the scripts for every episode of friends and it learned to generate new scenes pic.twitter.com/RIPvYuzEJM
— Andy Pandy (@_Pandy) January 18, 2016So what put him up to this?
“I’ve been reading up about machine learning in my spare time lately because it’s really fascinating. I honestly don’t understand a lot of the underlying mathematics, but I’m trying!” he said. “Also, Satan helped a bit.”
Most of the cast of Friends is reuniting on NBC next month, after all. He’s got to be pretty excited about that, right?
“I guess I kind of like Friends,” he said. “It was on TV constantly for about 20 years. We had no choice.”
Herd’s using Google’s machine learning library TensorFlow, the tech giant’s artificial intelligence engine. Google made the TensorFlow open source in November. The company had been using it to help with services like Google Photo, so users could type objects and the service would bring up those objects in their own pictures.
But Herd says he’d like to use TensorFlow to make it so Chandler isn’t in a muffin so often, the entire cast doesn’t stand in a bed together, clowns aren’t so frequently lopped upon tables, and Monica stops screaming “Chicken Bob!” to no one in particular. When the Friends bot eventually gets to that point, he says he’ll “maybe make it public one day.”
Then, maybe, something weird and incredible.
“Maybe Frasier or Seinfeld,” said Herd. “Or maybe mash them all together and create The Perfect Sitcom.”
Until “The One Where Chandler Is in a Muffin” airs, Herd recommends you learn some Python and try to beat him to the best Friends episode that never was.
“I got a lot of laughs from it myself, so I just thought I’d share some of the good stuff,” he said. “Maybe it’ll get people interested in new things. And I’m not very smart, so if I can do it, anyone can.”
Unlock a year of full access to The Daily Beast for $35.
Monthly
$1
First month then $5.99/month
Annual
$35
First year then $59.99/year
Premium
$79
First year then $119.99/year
*Substack access provided by the next business day, using your subscription email. Choosing the Premium plan constitutes your permission to share your subscription email with Substack and your agreement to Substack’s Privacy Policy.
Looks like you already have a subscription!
- Account (completed)
- Payment (completed)
- Confirmation (completed)
You're all set!
Thanks for subscribing.
- 1Account
- 2Payment
- 3Confirmation
Sign in or create an account
Register below to read this article for free or subscribe
to unlock unlimited access to The Daily Beast.
Monthly
$1
First month then $5.99/month
Annual
$35
First year then $59.99/year
Premium
$79
First year then $119.99/year
*Substack access provided by the next business day, using your subscription email. Choosing the Premium plan constitutes your permission to share your subscription email with Substack and your agreement to Substack’s Privacy Policy.
Already have an account? Sign In
Looks like you already have a subscription!
- Account (completed)
- Payment (completed)
- Confirmation (completed)
You're all set!
Thanks for subscribing.
- 1Account
- 2Payment
- 3Confirmation
