Natural Language Generation (NLG) is a sub-branch of Natural Language Processing. While Natural Language Understanding (NLU) focuses on how machines can understand text, NLG focuses on how machines can generate text in a way that is indistinguishable from human composition.
NLG is of particular interest in Legal NLP since language generation can be used to automatically draft clauses or summaries of documents.