reverting to old way of generating sentences until I find a more efficient algorithm