How a tweet inspired a novel