Sort:  

What would be the first sentence of your book.

I think you have an algorithym that detects key words and responds appropriately.