Accessibility links Telegraph. co. uk Tuesday 02 January 2018 Advertisement What happens when a computer program is taught to write new episodes of Friends Artificial intelligence network attempts to recreate scene from comedy show after being fed every single script The Friends cast in Monica's apartment, the set which will be the main attraction at FriendsFest 'Monica: I hate men! I hate men! ' Photo: ALAMY By James Titcomb 4:30PM GMT 20 Jan 2016 Follow They say a monkey left to hit a keyboard for an infinite amount of time will write Shakespeare, but when it comes to Friends scripts, a computer can do the job a lot quicker. An artificial intelligence program, when fed with scripts from the entire Friends back catalogue, has produced hilarious, if not entirely up to scratch, new scenes for the show. The network re-creates the back-and-forth conversations between the show's six lead members, including faithfully adding character traits such as Chandler beginning sentences with "so," and Joey's "seriously", although they probably wouldn't be accepted by the show's producers. Andy Herd, a software developer from Dundee and creator of the Pandyland web comic, used a recurrent neural network - a form of artificial intelligence that has proven to be relatively adapt at understanding and forming language - to generate the new scripts. 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, 2016 Although they make little sense, the tone and character of Friends is unmissable. It even includes Jean-Claude Van Damme, a guest star in one episode. A particular highlight is the following exchange: Chandler: So, Phoebe likes my pants Monica: Chicken Bob! Chandler: (in a muffin) (Runs to the girls to cry) Can I get some presents. Interactive: friends4 Interactive: friends3 Interactive: friends1 Interactive: friends2 There have been huge advances in artificial intelligence in recent years, with speech, image and text recognition as well as sentence formation improving markedly. This is enabling a wave of semi-intelligent assistants and customer service bots. Humour is seen as one of the final frontiers of artificial intelligence, being one of the most difficult things for computers to understand, which is perhaps unsurprising since psychologists also don't understand it nearly as well as other psychological phenomena. Most jokes told by robots have been pretty elementary, and pun based - "What do you call a strange market? A bizarre bazaar". Recent reports of a Friends reunion have been quashed, but if it does happen soon, scriptwriters probably won't be nervously looking over their shoulders. telegraphsciencetech Follow @telegraphtech Read more from Telegraph Technology Home-made in China Fifty-year-old farmer Chen Lianxue with his homemade plane on the roof of his house in Qifu village of Pingliang, Gansu province, China. The plane took Chen about 28,000 yuan (£2,900) and over two years time to make, local media reported. Ambitious Chinese inventors take on crazy do-it-yourself projects The biggest companies in the world in 2015 The Fortune Global 500 has been released – the annual ranking of the largest companies in the world by revenues. Here is a list of the 20 biggest corporate money-makers The Big Short hits UK cinemas: these are the best films about business The Big Short, the film adaptation of Michael Lewis' book of the same name about the causes of the financial crisis, opens in UK cinemas this weekend. How will the story stack up against the greatest films about business? The 20 bestselling mobile phones The mobile industry may be locked in a bitter battle between Samsung and Apple, but history tells a very different story. . . Most important inventions of the 21st Century iPhone became available on the O2 network in November 2007 From the Apple iPod to Google driverless cars, we run down the technologies that have transformed our world since the start of the 21st century Apple's new spaceship HQ in Cupertino Apple Headquarters in Cupertino The futuristic building in California should be completed in 2016. The most famous photoshopped images of all time The most famous photoshopped images of all time As an extraordinary photo showing the solar eclipse from space is revealed as fake, a look back at famous photoshopped images The most popular Instagram accounts As Instagram announces that it now has more than more than 400 million monthly active users, Sophie Curtis takes us through the ten most followed accounts on the Facebook-owned site Apple's iPhone: a history in pictures iPhones through the ages, from the 2007 original to 2014's iPhone 6 and iPhone 6 Plus Ahead of the launch of the new iPhone 5 SE, the Telegraph Tech team take a look at how the handset has changed the mobile phone industry since it was launched in 2007 Obsolete technologies that will baffle modern children Many children have never seen or used a video tape, camcorder or floppy disc. Take a look at the gadgets which will puzzle younger people Advertisement Advertisement Top Technology Videos» Google logo is seen at the Google headquarters in Brussels Rise of a tech giant: the history of Google Uber app with taxi The history of Uber Starship robots deliver parcels and groceries to customers for less than £1 Skype invent robot that delivers groceries Altwork station Forget standing desks: This office workstation lets you work lying down Instagram's new Boomerang app stitches together pictures to create videos Instagram launches gif-like app Boomerang Now your iPhone will even weigh fruit More from the web Advertisement Advertisement More from the web Loading Technology choice iPhone 6s/7 release date and rumour roundup iPhone 6s and 6s Plus rumours: all you need to know A customer holds the latest generation of Apple iPhones in an Apple store in Oberhausen, Germany Seven tips to secure your iPhone from hackers Online threat: hacking has become more commonplace. How hackers took over my computer More from the web Loading News Progress 17 supply vehicle departs from the International Space Station The latest news, opinion and analysis View Football Catch up on all the latest football news and results View Film All the latest film trailers, reviews and features View Competitions Enter one of our exciting new competitions View Back to top Terms and Conditions Today's News Archive Style Book Weather Forecast