Turning novels' plots into data points