# Natural Language Generation (NLG)

> The part of language AI that writes. It turns data or ideas into text.

**Field:** Artificial Intelligence  
**Category:** NLP & Language  
**Also known as:** NLG, Language Generation

## Think of it like

It is like a sports reporter. She turns a score sheet into a story.

## Definition

Natural language generation, or NLG, is the part of NLP that writes text. It starts from data or a goal and ends with sentences a person can read. Older systems filled in templates, like 'Sales rose by 5%'. Today, large language models write most of this text from scratch. Weather reports, game recaps and chatbot replies are all NLG. It is the writing half of language AI.

## Example

A weather site turns its numbers into a line of text. It says rain comes after 4 pm, with a high of 12 degrees. No person wrote it.

## Why it matters

It lets a program report to people in words, not just tables. That is how most AI output reaches us.

## Common mistake

Trusting fluent text as correct text. NLG can write a smooth sentence about a number it got wrong.

## Three principles

- **Data to words.** Facts become sentences.
- **Templates to models.** From fill-in blanks to free writing.
- **The writing half.** Reading is the other half, NLU.

## Related terms

- [Natural Language Processing (NLP)](https://learn.benibix.com/term/ai/natural-language-processing)
- [Natural Language Understanding (NLU)](https://learn.benibix.com/term/ai/natural-language-understanding)
- [Text Generation](https://learn.benibix.com/term/ai/text-generation)
- [Large Language Model (LLM)](https://learn.benibix.com/term/ai/large-language-model)
- [Text Summarization](https://learn.benibix.com/term/ai/text-summarization)
- [Chatbot](https://learn.benibix.com/term/ai/chatbot)

## Told apart from

- [NLU vs NLG](https://learn.benibix.com/compare/nlu-vs-nlg): People think NLU and NLG are two names for one thing, since both deal with plain language. They point in opposite ways. NLU reads words and turns them into meaning a program can use, like a goal or a date. NLG starts from data or a goal and writes words for a person to read. A voice assistant does NLU to hear you and NLG to answer.

![A loop in two halves. On the left, the sentence 'book a table for two at 8' goes into NLU and comes out as a form with a goal, a time and a count. On the right, the form goes into NLG and comes out as the sentence 'Your table for two is booked for 8 pm.'](https://learn.benibix.com/diagrams/ai5-nlu-nlg.svg)

---

Source: https://learn.benibix.com/term/ai/natural-language-generation
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
