"Hasta la vista, baby" was uttered by a murderous cyborg played by Arnold Schwarzenegger, but could a computer recognise it as one of cinema's most memorable lines? Yes, according to American researchers.
A team at Cornell University has created a computer programme to find the formula behind some of cinema's most enduring lines, from Dirty Harry's "Do you feel lucky, punk?" to Casablanca's "Here's looking at you, kid."
In its current form, the algorithm may not be a huge help to budding screenwriters looking for their first hit, but its creators believe that eventually it may well come out with a few classic quotes, or at least a successful advertising slogan, on its own.
Computer scientist Cristian Danescu-Niculescu-Mizil initially wanted to study political speeches and news bulletins to pick out the best lines, but when that proved too difficult, the team turned its attention to films to analyse what drove certain lines into popular culture.
For their research paper, titled "You had me at hello: How phrasing affects memorability", they scoured the internet for film scripts and studied 1000 films, highlighting memorable quotes selected by users of the film website imdb.com.