Skip to main content

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

computer writes ridiculous new friends scripts
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.

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 animated movies on Netflix right now
A cat points a bat at another cat in Puss in Boots: The Last Wish.

While Nimona has been the big Netflix original animated film of the summer, it's far from the only addition to the lineup. Netflix is making sure that animation fans are well served in August with the first two Despicable Me movies, Bee Movie, and Cloudy With a Chance of Meatballs 2. However, Netflix's biggest recent addition is one of 2022's biggest animated hits: DreamWorks' Puss in Boots: The Last Wish.

Netflix's deals with Sony Pictures Animation, DreamWorks Animation, and Universal Pictures have given it a powerhouse library of animated films. And that's before we even get into Netflix's impressive originals like The Sea Beast. To help you keep track of what's new and what you can stream right now, we've updated our list of the best animated movies on Netflix.

Read more
From Barbarella to Howard the Duck: the 7 cheesiest sci-fi movies ever
Howard the Duck in "Howard the Duck."

The science-fiction genre has a vast smorgasbord of cheesy films stretching way back to the early days of cinema. Such pictures are known for their weird stories, unrealistic dialogue, low-budget productions, and exaggerated acting.

While many of these films have been panned by critics and audiences alike, some of them have garnered success for being "so bad, they're good." Whether or not they have been held up by a dedicated fan base, these seven movies stand out as the cream of the cheesy sci-fi crop.
Flash Gordon (1980)

Read more
10 best Batman stories ever, ranked
Batman Year One cover

Bounding from rooftop to rooftop, the Dark Knight never misses his mark. He operates like a well-oiled machine tracking bad guys, beating them to a bloody pulp, and throwing them in the slammer - or Arkham Asylum should they be anyone of Gotham's notable supervillains. As the brainchild of Bob Kane and Bill Finger, an artist and writer duo, Batman has been pounding the pavement of Gotham ever since his debut in Detective Comics in 1939. He's undergone a number of changes since his original conception ultimately becoming the brooding powerhouse we know today.

Most understand the basic tenants of Batman these days. His parents were murdered before his young eyes leading him down this path of personal vindication and pursuit of justice. Batman, in most iterations, never resorts to killing -- the one crime that separates his outlaw vigilante operations from the real criminals. Of course, it wasn't always that way. In Batman's earliest days, he had no qualms about ending the lives of baddies on the streets. Even now, some stories and films like Tim Burton's gothic take on the character depict him looking on with cold and uncaring glares as criminals meet their end. Regardless, Batman is mostly a well-established hero simply seeking justice and there are countless stories of the Caped Crusader. Let's take a look at the best among them.
10. Hush

Read more