Skip to main content

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

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.

Recommended Videos

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.

Please enable Javascript to view this content

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…
7 best video game movies, ranked
The cast of A Minecraft Movie.

During this past weekend's box office, two video game movies placed in the top 5 films: A Minecraft Movie and Until Dawn. Thanks to the massive success of the former, Hollywood is all but ready to crown video game movies as the next big thing now that comic book movies are slowing down. But that's only going to be true if the video game movies are good. The major studios have made plenty of bad video game films over the last three decades. And even video game icons like Lara Croft have had hard time making the leap to live-action franchises with big box office results and even bigger sequels.

The last few years have given fans a video game movie renaissance, with films that we could watch in theaters without being embarrassed. But movie studios don't always take the correct lessons from their hits, and there will always be bad video game movies to go along with the good ones. In the meantime, A Minecraft Movie's breakout status convinced us that it was time to look back at the seven best video game movies to date. And it just made the list at No. 7.

Read more
Top Gun: Maverick director will bring Miami Vice back to the big screen
Don Johnson and Philip Michael Thomas in Miami Vice.

Miami Vice, the iconic neo-noir cop drama of the '80s, is heading back to the big screen. Top Gun: Maverick director Joseph Kosinski has signed on to helm Miami Vice from a script by Eric Warren Singer, which is being rewritten by Andor scribe Dan Gilroy.

According to Deadline, Kosinski may not get around to Miami Vice right away. He still has to direct an untitled UFO project at Apple Studios for producer Jerry Bruckheimer. Kosinski's next movie, F1, will be released this summer by Warner Bros. Pictures and Apple Studios.

Read more
Adrianne Palicki had talks with Marvel about playing Mockingbird in the MCU
Adrianne Palicki as Mockingbird in Agents of S.H.I.E.L.D..

Just over a decade ago, actress Adrianne Palicki joined the cast of Marvel's Agents of S.H.I.E.L.D. season 2 as Agent Bobbi Morse aka Mockingbird. In Marvel's comic book universe, Mockingbird was also an agent of S.H.I.E.L.D. before marrying Hawkeye and joining the Avengers. Palicki's version of the character never had the chance to go in that direction, but the actress recently revealed that she was in talks with Marvel years ago about playing Mockingbird in the MCU movies.

"The conversation I had when I signed on actually to Agents of S.H.I.E.L.D. was either I was going to be participating in the films or have a spinoff," said Palicki during a recent interview with The Direct. Palicki became a series regular through the end of the second season and into the third. Nick Blood was also introduced in the show as Bobbi's ex-husband, Lance Hunter. Blood and Palicki were written out of the series in season 3 to film a spinoff, Marvel's Most Wanted. However, ABC ultimately declined to go forward with the show.

Read more