Skip to main content

The one where Chandler is in a muffin — Computer writes new Friends episodes

computer writes ridiculous new friends scripts
Image used with permission by copyright holder
Friends fans, there is something out there to hold you over until the cast reunion next month. Webcomic artist Andy Herd has caused something of a beautiful disaster, which perfectly describes the best episodes of the greatest sitcoms in television history. Herd has taken the script writing job out of the hands of humans and given them to a computer. The results are nothing short of ridiculous. And amazing.

Herd loaded every single Friends script into a recurrent neural network (RNN), which he briefly defined in an interview with The Daily Beast. “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.” Basically, it learned to write an episode of Friends using just the information provided, which in this case, was episodes of Friends.

The “recurrent” part of an RNN defines the basic function of the process. To predict the next letter or word, the system relies on what came before it. It builds on what it learned in the previous few steps, and continues this pattern throughout the sequence. An RNN can also be “trained” for more predictable and fitting results, but is also limited by long spaces between dependencies, among other factors. Training is not easy and can include teaching the program to scan deeper, and also make predictions for future sentences, rather than just relying on current and previous data.

Herd’s computer initially spouted nonsense, but eventually some gold was struck. After running his program for 12 hours, Herd’s computer produced scenes that shows an inkling of what an RNN process is capable of in this type of application. Herd tweeted some screenshots of this bizarro Friends episode, and we’ve included some of our favorite lines below:

“Joey: Seriously give me a clown on the table that’s all.”

“Chandler: (in a muffin) (Runs to the girls to cry) Can I get some presents.”

“Monica: Happy Gandolf.”

Herd used Google’s artificial intelligence engine TensorFlow, which became open source in November. “I’ve been reading up about machine learning in my spare time lately because it’s really fascinating,” said Herd. “I honestly don’t understand a lot of the underlying mathematics, but I’m trying! Also, Satan helped a bit.”

Herd plans to further develop his Friends bot to make more sense, after which he may release it to the public. He hopes that his efforts can get people interested in learning new things.

Editors' Recommendations

Albert Khoury
Former Digital Trends Contributor
Al started his career at a downtown Manhattan publisher, and has since worked with digital and print publications. He's…
The best movies on Amazon Prime Video (May 2024)
Nicholas Galitzine and Anne Hathaway in The Idea of You.

Amazon Prime Video is starting off strong in May with several new additions to its library of movies, including the premiere of the original romantic drama The Idea of You. Last year's underrated Christmas drama The Holdovers is also now streaming on Prime Video. And as far as we're concerned, a good drama is never out of season.

Prime Video lost a handful of movies at the end of April, and Paul Thomas Anderson's Licorice Pizza is only sticking around through the end of the weekend. But everything else on our list of the best movies on Amazon Prime Video right now is still available. Just keep reading, and you can make plans to watch any of the films that you want to see this month.

Read more
The 50 best movies on Netflix right now (May 2024)
Jenna Ortega in Miller's Girl.

It should come as no surprise that this year's hit rom-com Anyone But You has a stranglehold on the top slot of the list of the most popular movies on Netflix. But it is somewhat surprising to see Zack Snyder's Rebel Moon – Part Two: The Scargiver completely disappear from the list. That's going to make Rebel Moon – Part Three very unlikely to happen, and it may even discourage Netflix from committing extremely high budgets to its original sci-fi movies.

More tellingly, two of this week's new additions are modestly budget dramas: Miller's Girl and The Judge. The former features Wednesday's Jenna Ortega, while the latter has great lead performances by Robert Downey Jr. and Robert Duvall. So it's not a mystery as to why both of those films are two of the top performers of the week.

Read more
MCU’s Fantastic Four: release date, trailer, cast, plot
The cast of "The Fantastic Four."

It's not a coincidence that one of the first Marvel movies announced after Disney purchased 20th Century Fox's entertainment assets in 2019 was a new reboot of The Fantastic Four. In 1961, Stan Lee and artist Jack Kirby launched the Marvel Universe as we know it with Fantastic Four #1, and it was the comic that set the tone for everything that came after.

Because the rights to the Fantastic Four were tied up at Fox for the better part of two decades, FF supporting players like Silver Surfer were withheld from the MCU. Now that the characters are firmly under Marvel Studios' control, the sky's the limit for the upcoming reboot. And we're here to share everything we know about The Fantastic Four so far.
Who has been cast in The Fantastic Four?

Read more