Sarcasm-detecting algorithm

Devised by computer scientists at The Hebrew University in Jerusalem, the algorithm has been programmed to recognise sarcasm in lengthy texts by analysing patterns of phrases and punctuation often used to indicate irony.

In tests on 66,000 product reviews posted on the Amazon shopping website, the algorithm had an impressive 77 per cent success rate in picking out sarcastic comments – arguably higher than some humans.

The researchers "trained" the algorithm to recognise sarcasm by teaching it nearly 5,500 sentences from Amazon reviews that human volunteers had marked as either sarcastic or non-sarcastic.

The sarcastic phrases from the pool of Amazon reviews used for the research included "Great for insomniacs", "Are these iPods designed to die after two years?" and "Defective by design".
Telegraph.co.uk | via