Artificial intelligence tackles the written word