Generalized poem generation