AI in text generation