There are challenges, of course – getting machines to understand a plot arc, let alone metaphor or irony. But scientists are working on three programs – Scheherazade, the What-If Machine, and Metaphor Magnet – to tackle these problems. Tom Meltzer talks to the creators, while Nicholas Lezard reviews the stories.