"I could kill for a bacon sandwich". Photo: Getty.
Show Hide image

US Secret Service seeks Twitter sarcasm detector

The US Secret Service is seeking some help with its online snooping, and needs a company that can detect sarcasm online - because you need to be able to distinguish between "I love Al Qaeda" and "I love Al Qaeda". Good luck with that, pals! 

“How do I look?”

“Great.”

Without the benefit of other clues, this conversation could have gone any number of ways. Perhaps Ed Miliband was consulting Justine on his latest portrait with a bacon sandwich. And even then, who knows, maybe Miliband’s wife really loves his bacon buttie face. The English language is so delightfully, confusingly rich in meaning that “great” can mean anything from “wonderful” to “mediocre” to “awful”.  

Which brings me to a great piece of news. The US Secret Service is looking to commission a Twitter sarcasm detector to improve its online social media surveillance. It is inviting analytics firms to bid for a five-year contract to monitor and analyse online trends and sentiment, and one of its requirements is the ability to “detect sarcasm and false positives” – presumably because when scanning the web for potential threats to national security, you don’t want to deploy police to the home of the tweeter who could “totally kill for a bacon sandwich right now.” (We know who you are.)  And you need to be able to distinguish between “I love Al Qaeda” and “I love Al Qaeda”.

Humans are not actually very good at detecting sentiment in written language. Consider, for instance, that for over 500 years, scholars have tried to improve the way in which irony is expressed on paper – including by developing several irony marks, from backwards question marks to squiggly exclamation marks (more on which here).

Because tweets and text messages are too short to give much context, there is an even greater potential for misunderstanding. The emoticon might have helped a little, and yet over the years, a billion sentiments have been furnished with a winky face.wink

According to one study published in 2005 in the Journal of Personality and Social Psychology, respondents had a 50/50 chance of correctly judging the tone of an email – although they thought they were right 90 per cent of the time. 

Still, the Secret Service can take heart. A number of attempts to develop computerised sarcasm detectors appear to have slightly better odds of being correct than the humans in the above study. In 2010, scientists at the Hebrew University in Jerusalem reported they had developed an algorithm to judge sarcasm that had a 77 per cent success rate at identifying snark in Amazon reviews. The French company Spotter claims to have an 80 per cent success rate at identifying sentiment correctly, and can work in 29 different languages. Its clients include the EU Commission, the Home Office and the Dubai Courts. Perhaps they will be offering their skills to the US as we speak.

If this new information on government surveillance gives you the heebie-jeebies, there is some cause for optimism. The US Secret Services computer technology might not be as advanced as you feared – as the BBC points out, the Secret Service requests that the software be compatible with Internet Explorer 8, a web browser released over five years ago. Good luck with it all, guys!

Sophie McBain is a freelance writer based in Cairo. She was previously an assistant editor at the New Statesman.

Photo: Getty
Show Hide image

French voters face a choice: Thatcherism or fascism

Today's Morning Call. 

Francois Fillon has been handed the task of saving France from a Marine Le Pen presidency and, by extension, the European Union from collapse, after a landslide win over Alain Juppé in the second round of the centre-right Republican party primary, taking 67 per cent of the vote to Juppé's 33 per cent. 

What are his chances? With the left exhausted, divided and unpopular, it's highly likely that it will be Fillon who makes it into the second round of the contest (under the French system, unless one candidate secures more than half in the first round, the top two go to a run off). 

Le Pen is regarded as close-to-certain of winning the first round and is seen as highly likely to be defeated in the second. That the centre-right candidate looks - at least based on the polls - to be the most likely to make it into the top two alongside her puts Fillon in poll position if the polls are right.

As I explained in my profile of him, his path to victory relies on the French Left being willing to hold its nose and vote for Thatcherism - or, at least, as close as France gets to Thatcherism - in order to defeat fascism. It may be that the distinctly Anglo-Saxon whiff of his politics - "Thatcherite Victor vows sharp shock for France" is the Times splash - exerts too strong a smell for the left to ignore.

The triumph of Brexit in the United Kingdom and Donald Trump in the United States have the left and the centre nervous. The far right is sharing best practice and campaign technique across borders, boosting its chances. 

Of all forms of mistake, prophecy is the most avoidable, so I won't make one. However, there are a few factors that may lie in the way of Le Pen going the way of Trump and Brexit. Hostility towards the European project and white  racial reaction are both deeply woven into the culture and politics of the United Kingdom and the United States respectively. The similarities between Vote Leave and Trump are overstated, but both were fighting on home turf with the wind very much at their backs. 

While there's a wider discussion to be had about the French state's aggressive policy of secularism and diversity blindness and its culpability for the rise of Le Pen, as far as the coming contest is concerned, the unity of the centre against the extremes is just as much a part of French political culture as Euroscepticism is here in Britain. So it would be a far bigger scale of upheaval if Le Pen were to win, though it is still possible.

There is one other factor that Fillon may be able to rely on. He, like Le Pen, is very much a supporter of granting Vladimir Putin more breathing space and attempting to reset Russia's relationship with the West. He may face considerably less disruption from that quarter than the Democrats did in the United States. Still, his campaign would be wise to ensure they have two-step verification enabled.

A WING AND A PRAYER

Eleanor Mills bagged the first interview with the new PM in the Sunday Times, and it's widely reported in today's papers. Among the headlines: the challenge of navigating  Brexit keeps Theresa May "awake at night", but her Anglican faith helps her through. She also lifted the lid on Philip May's value round the home. Apparently he's great at accessorising. 

THE NEVERENDING STORY

John Kerr, Britain's most experienced European diplomat and crossbench peer, has said there is a "less than 50 per cent" chance that Britain will negotiate a new relationship with the EU in two years and that a transitional deal will have to be struck first, resulting in a "decade of uncertainty". The Guardian's Patrick Wintour has the story

TROUBLED WATERS OVER OIL

A cross-party coalition of MPs, including Caroline Lucas and David Lammy, are at war with their own pension fund: which is refusing to disclose if its investments include fossil fuels. Madison Marriage has the story in the FT

TRUMPED UP CHARGES?

The Ethics Council to George W Bush and Barack Obama say the Electoral College should refuse to make Donald Trump President, unless he sells his foreign businesses and puts his American ones in a genuine blind trust. Trump has said he plans for his children to run his businesses while he is in the Oval Office and has been involved in a series of stories of him discussing his overseas businesses with foreign politicians. The New York Times has detailed the extentof Trump's overseas interests. 

TODAY'S MORNING CALL...

...is brought to you by the City of London. Their policy and resources chairman Mark Boleat writes on Brexit and the City here.

CASTROFF

Fidel Castro died this weekend. If you're looking for a book on the region and its politics, I enjoyed Alex von Tunzelmann's Red Heat, which you can buy on Amazon or Hive.

BALLS OUT

Ed Balls was eliminated from Strictly Come Dancing last night, after finishing in the bottom two and being eliminated by the judges' vote.  Judge Rinder, the daytime TV star, progressed to the next round at his expense. 

AND NOW FOR SOMETHING COMPLETELY DIFFERENT

Helen reviews Glenda Jackson's King Lear.

MUST READS

Forget Castro's politics. All that matters is he was a dictator, says Zoe Williams

The right must stop explaining away Thomas Mair's crime, I say

It’s time to end the lies on immigration, says Anna Soubry

Get Morning Call direct to your inbox Monday through Friday - subscribe here. 

Stephen Bush is special correspondent at the New Statesman. His daily briefing, Morning Call, provides a quick and essential guide to British politics.