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…
5 movies leaving Netflix in April 2024 you have to watch now
A clown stares into the mirror.

The end of April means Hollywood is heading into the summer blockbuster season. The new month also signals the removal of many notable films on Netflix. Step Brothers, The Florida Project, The Sting, and the first three Jurassic Park films will be unavailable on Netflix starting May 1.

The list does not stop at the six films mentioned above. We selected five additional films departing Netflix at the end of April. Our choices include an Oscar-winning psychological thriller revolving around jazz, an iconic comedy from the 1990s, and a billion-dollar-grossing comic book villain origin story.
Silver Linings Playbook (2012)

Read more
Where to watch the NFL draft live stream in 2024
The NFL Logo

The 2024 NFL Draft gets underway tonight. For 257 prospects, it's the culmination of years of hard work, and for 32 teams,  it's the introduction to integral pieces that will shape the future of their franchise.

Round 1 of the draft starts on Thursday, April 25, at 8:00 p.m. ET, while Rounds 2 and 3 will start Friday at 7:00 p.m. ET, and Rounds 4 through 7 will start Saturday at 12:00 p.m. ET.

Read more
If you like The Sopranos, watch these three great modern TV shows now
The cast of The Sopranos.

A quartercentury after it first premiered, The Sopranos retains a remarkably strong foothold over the television landscape. The show shaped what's become known as antihero TV, and it remains one of the very best shows of its kind to ever air. We're no longer in the Golden Age of TV, but there are still plenty of modern shows that owe at least a small debt to what The Sopranos was able to pull off.

While none of these series is exactly like The Sopranos, we've gathered three great shows that have something in common with that show. Whether you're just finishing up your first watch or have seen the show hundreds of times, these shows may help to fill the hole that it leaves behind.
Better Call Saul (2015-2022)
Official Season 6 Trailer | Better Call Saul

Read more