Researchers have created a computer program that can detect lies, be it an email, dating profile or visa application. The algorithm, created at City University London, can spot lies by analysing their word use, structure and context, according to the researchers. To create the algorithm, researchers compared text in tens of thousands of emails that contained lies and truthful contents.