Text processor which analyses text and generates random sentences