Natural language generation (NLG) is an application of artificial intelligence (AI) technology that produces a context-appropriate message in human-readable form.
Natural language processing (NLP) consists of natural language understanding (NLU) and natural language generation, which are distinct processes that may be used individually or together. NLG is the output-oriented component of natural language processing. NLG starts with data and produces syntactically correct and context-appropriate natural language streams that range from simple responses to complex narratives. Generating narratives—storytelling—from data may be interactive (conversational) or driven by events.
For example, a change in the database representing a change in a stock price may trigger the generation of a new narrative about the company; or, the arrival of a data feed at the end of a sporting event may trigger the generation of a summation of the event or game.
NLG tools are rapidly emerging as alternatives to business intelligence visualization tools, content generation, and as options for custom output for conversational interfaces.