A learning text generation system