An algorithm walks into a bar and orders a new joke

I'm sceptical about the marriage of machines and creativity


Most of us don’t notice algorithms unless they go wrong. When an online retailer sends an email suggesting purchases they think you’d like, every one of them is a Sylvester Stallone movie because you Googled a trip to the Rocky Mountains a few days ago. Or, as happened last year, when Amazon had to remove T-shirts from sale because they were plastered with “Keep Calm and Choke Her”. The slogans were being generated by an algorithm trawling the internet for verb-noun combinations. But no one had thought to add a moral dimension to the equation, which would tell the computerised process that threats of violence might be in poor taste.

Even though the T-shirt designs might not have taken the fashion world by storm, this is still the way that more and more creative work is being done: an algorithm, albeit one designed by a person, now invents things which were once the preserve of human creativity – not just clothing slogans, but art, poetry and jokes.

I’ve tended to be sceptical about the marriage of machines and creativity. Isn’t the whole point of a poem that it speaks from one human being to another? When I read Virgil’s Aeneid, it doesn’t matter that it was written 2,000 years ago by a man I wouldn’t have understood. It couldn’t matter less that the big emotional scene is between the queen of Carthage and a prince of Troy. All that matters is that Dido’s heart is broken by Aeneas leaving, just like our hearts were once broken by people who weren’t good enough for us (though we sensibly didn’t throw ourselves on a pyre when they finally left).

The problem is, if anything, even more difficult when it comes to humour. Making people laugh is a difficult business at the best of times. Context is everything, which is why it’s so hard to make jokes work in translation. Word order, puns, references, resonance – all these things change from one culture to another, and from one language to another. On top of that, jokes aren’t a rarefied art form. They have to appeal to a mass audience. Think how feeble Christmas cracker jokes need to be to ensure they can be understood by everyone from small children to their great-grandparents.

And jokes are themselves only a part of what makes something funny. As Frank Carson succinctly put it: “It’s the way I tell ’em.” Comedians are more than the sum of their material: they’re performers. How can a machine in a lab replicate any of that? Quite aside from the strange dynamics of an audience, whose presence can have an alchemical reaction – their laughter redoubling not because of the comedian they’re watching, but because of the response of the rest of the audience.

I’ve just made a documentary for Radio 4 (who else?) about computational creativity – I’m not an expert on algorithms at all, but I do understand something about the difficulties that any performer or artist needs to overcome if they’re going to connect with an audience. The work that computers are creating (once the algorithm is in place) is incredibly wide ranging: visual art, poetry made out of tweets produced over the previous 24 hours, even comic one-liners.

The poetry is, unnervingly, no worse than Adrian Mole’s teenage efforts. Simon Colton of Goldsmiths College showed me how his algorithms search the day’s newspapers to calculate, from the headlines, whether it’s a happy day or a sad one. The programme’s mood is thus decided, and it can write something akin to poetry by picking key words from the newspaper articles themselves. Mr Colton’s computer can also turn Twitter into verse, finding short chunks of prose which fit the mood he’s chosen, then picking tweets which rhyme and scan and putting them in a meaningful order.

The jokes are the really tricky thing. Computers are getting better at identifying what might seem funny, but comedians don’t need to worry yet. Some scientists think that humour is the final piece of the artificial intelligence jigsaw: when computers can make us laugh, they will be as intelligent as humans. So when HAL takes over the world, at least he’ll have a punchline.

React Now

iJobs Job Widget
iJobs General

Business Analyst Consultant (Financial Services)

£60000 - £75000 per annum: Harrington Starr: Business Analyst Consultant (Fina...

Systems Administrator - Linux / Unix / Windows / TCP/IP / SAN

£60000 per annum: Harrington Starr: A leading provider in investment managemen...

AVS, JVS Openlink Endur Developer

£600 - £700 per day: Harrington Starr: AVS, JVS Openlink Endur Developer JVS, ...

E-Commerce Developer

£45000 - £60000 per annum + competitive: Progressive Recruitment: Exciting opp...

Day In a Page

Read Next

Letter from the Political Editor: Phone and data laws to be passed in haste

Andrew Grice
The first lesson of today is... don't treat women unequally?  

Yvette Cooper is right: The classroom is the best place to start teaching men about feminism

Chris Maume
A History of the First World War in 100 Moments: Peace without magnanimity - the summit in a railway siding that ended the fighting

A History of the First World War in 100 Moments

Peace without magnanimity - the summit in a railway siding that ended the fighting
Scottish independence: How the Commonwealth Games could swing the vote

Scottish independence: How the Commonwealth Games could swing the vote

In the final part of our series, Chris Green arrives in Glasgow - a host city struggling to keep the politics out of its celebration of sport
Out in the cold: A writer spends a night on the streets and hears the stories of the homeless

A writer spends a night on the streets

Rough sleepers - the homeless, the destitute and the drunk - exist in every city. Will Nicoll meets those whose luck has run out
Striking new stations, high-speed links and (whisper it) better services - the UK's railways are entering a new golden age

UK's railways are entering a new golden age

New stations are opening across the country and our railways appear to be entering an era not seen in Britain since the early 1950s
Conchita Wurst becomes a 'bride' on the Paris catwalk - and proves there is life after Eurovision

Conchita becomes a 'bride' on Paris catwalk

Alexander Fury salutes the Eurovision Song Contest winner's latest triumph
Pétanque World Championship in Marseilles hit by

Pétanque 'world cup' hit by death threats

This year's most acrimonious sporting event took place in France, not Brazil. How did pétanque get so passionate?
Whelks are healthy, versatile and sustainable - so why did we stop eating them in the UK?

Why did we stop eating whelks?

Whelks were the Victorian equivalent of the donor kebab and our stocks are abundant. So why do we now export them all to the Far East?
10 best women's sunglasses

In the shade: 10 best women's sunglasses

From luxury bespoke eyewear to fun festival sunnies, we round up the shades to be seen in this summer
Germany vs Argentina World Cup 2014: Lionel Messi? Javier Mascherano is key for Argentina...

World Cup final: Messi? Mascherano is key for Argentina...

No 10 is always centre of attention but Barça team-mate is just as crucial to finalists’ hopes
Siobhan-Marie O’Connor: Swimmer knows she needs Glasgow joy on road to Rio

Siobhan-Marie O’Connor: Swimmer needs Glasgow joy on road to Rio

18-year-old says this month’s Commonwealth Games are a key staging post in her career before time slips away
The true Gaza back-story that the Israelis aren’t telling this week

The true Gaza back-story that the Israelis aren’t telling this week

A future Palestine state will have no borders and be an enclave within Israel, surrounded on all sides by Israeli-held territory, says Robert Fisk
A History of the First World War in 100 Moments: The German people demand an end to the fighting

A History of the First World War in 100 Moments

The German people demand an end to the fighting
New play by Oscar Wilde's grandson reveals what the Irish wit said at his trials

New play reveals what Oscar Wilde said at trials

For a century, what Wilde actually said at his trials was a mystery. But the recent discovery of shorthand notes changed that. Now his grandson Merlin Holland has turned them into a play
Can scientists save the world's sea life from

Can scientists save our sea life?

By the end of the century, the only living things left in our oceans could be plankton and jellyfish. Alex Renton meets the scientists who are trying to turn the tide
Richard III, Trafalgar Studios, review: Martin Freeman gives highly intelligent performance

Richard III review

Martin Freeman’s psychotic monarch is big on mockery but wanting in malice