Natural language generation (NLG) is AI that turns data into text people can read. Learn how it works, where it is used and its limits.

On this page
Summary
Natural language generation (NLG) is the use of artificial intelligence to create human language from structured or unstructured data. It turns numbers, facts or raw information into sentences a person can read or hear, such as a weather report, a product description or a chatbot reply.
Want to go further? Ask
Natural language generation is the part of AI that writes text or speech from data. The input can be a table of sales numbers, a list of product facts or a question typed by a user. The output is a sentence that reads as if a person wrote it. NLG sits inside natural language processing, the wider field that deals with human language.

NLG starts with information and ends with words. The system checks what data it has, decides what matters, and then picks the words and sentence shapes to say it. IBM describes NLG as the use of AI to create natural language output from structured and unstructured data, as explained on IBM's topic page on natural language generation.
A research survey by Albert Gatt and Emiel Krahmer, first posted in 2017, takes a broader view. It defines the task as generating text or speech from non-linguistic input. That is the core idea behind every NLG tool, from a simple report generator to a modern chatbot.
Most NLG systems follow a chain of steps, and each step passes its output to the next one. IBM lists five.
Modern systems often do several of these steps in one go. A large language model can plan and write the answer in a single pass. The steps still help you find the cause of a bad output. If the text is clumsy, the problem is usually in the final step. If it states facts that were never in the input, the problem is in the data or the interpretation.
Tip
Start with clean data. Most bad NLG output comes from bad input, not from bad writing.
NLG is already in tools you use every day. These are the most common cases:
The simplest form of NLG is a template. The data fills the gaps, and the sentence stays the same for each row of data:
Sales in {city} rose {change} percent in {month}.
A weather app shows the same idea. The forecast data says rain is likely after noon. The NLG step turns that data into a sentence such as "Expect rain after lunch, so take an umbrella." The same data can also feed a short phone alert or a longer text for a website, with the wording changed for each one.
Modern systems write more varied sentences than a template, but the job is the same. Data goes in, and readable text comes out. This is why NLG is so useful for reports that repeat every day or every week, where a person would otherwise write the same kind of sentence again and again.
NLP is the whole field, NLU reads text, and NLG writes it. The three terms are close, so they are often mixed up. The table below shows the difference.
| Term | What it does | Example |
|---|---|---|
| Natural language processing (NLP) | The whole field of machines working with human language | A search engine that matches your question to pages |
| Natural language understanding (NLU) | Reads text and finds its meaning | Working out that "cheap flight to Rome" is a travel search |
| Natural language generation (NLG) | Writes text from data or meaning | Turning the same flight data into a sentence for an email |
A chatbot uses all three steps at once. It understands your question, decides what the answer should say, and writes the reply. If you remember that NLU goes in and NLG comes out, the rest of the field is easier to follow.
Not quite: generative AI is wider than NLG. Generative AI creates new content of many kinds, including text, images, audio and code. NLG covers only the part that creates language. Most text-based generative AI is also NLG, so the two overlap a lot in practice.
NLG also includes older rule-based systems that never used a neural model. Those tools filled sentence templates from data, and many business reports still work that way. When you read a vendor claim about NLG, ask which kind of system it describes.
Teams that use NLG make three mistakes again and again. Each one has a clear sign and a clear fix.
What it is: the text reads well but states something the input never said. This is an AI hallucination, and it is the most costly NLG error. How to spot it: compare every number, name and date with the source data. How to fix it: give the system only verified data, and check each output against that data before you publish.
What it is: every page or report uses the same sentence structure, even when the data is very different. How to spot it: read ten outputs in a row and see whether they sound identical. How to fix it: write several variants of each sentence and let the system pick one based on the data it has.
What it is: the text goes live with no editor reading it. How to spot it: nobody is named as the owner of the output. How to fix it: add a review step for high-stakes text, such as medical, legal or financial content, and keep a record of the edits.
NLG matters for SEO because it lets a site publish many useful pages, such as product pages, local pages and reports, without writing each one by hand. It matters for GEO because AI content generation only helps when the text is accurate and clear. AI models cite pages that answer a question directly, so the first sentence of each section matters most.
Sorank uses AI to write blog articles for your site. See the AI blog article generator to learn how it works. To see where AI-written content fits into a full SEO plan, read AI content for SEO.
Natural language generation turns data into text that people can read or hear. It works behind voice assistants, chatbots, reports and product pages. Start with clean data, check every fact, and review the output before it goes live.
Sources
NLP is the whole field of machines working with human language. NLG is the part that writes text or speech. NLU is the part that reads text and finds its meaning.
A weather app is a common example. It turns forecast data into a sentence such as a warning to take an umbrella. Chatbot replies and sales summaries work the same way.
Yes, in part. When a model like ChatGPT writes an answer from your prompt, it is doing NLG. The same kind of model can also summarize and translate text, which are related tasks.
