Artificial intelligence · Article

How Natural Language Processing Lets Chatbots Understand What You Say

Published:

In brief

Natural language processing (NLP) is the branch of artificial intelligence that lets software break down, interpret and generate human language, and it is the technology underneath chatbots such as ChatGPT, Gemini and Copilot. In practice, text is split into tokens, converted into numerical representations, and run through attention-based neural networks that predict the most likely next words to form a reply.

Natural language processing, or NLP, is a subfield of computer science and artificial intelligence that uses machine learning to let computers understand and communicate in human language, according to IBM. It combines computational linguistics — the rule-based modeling of grammar and meaning — with statistical modeling and deep learning so that software can recognize, interpret and generate both text and speech.

IBM splits the field into two complementary halves: natural language understanding (NLU), which analyzes input to work out meaning, intent and context rather than just individual words, and natural language generation (NLG), which produces human-readable text in response. A chatbot needs both — NLU to figure out what a person is asking, NLG to phrase the answer.

Turning words into something a machine can process

Before any 'understanding' can happen, raw text has to be converted into a form a computer can work with. IBM describes this pipeline as starting with tokenization, where text is broken into smaller units — usually words or parts of words — followed by normalization steps such as lowercasing and removing filler words.

From there, the system applies parsing to map grammatical structure, named entity recognition to flag people, places, dates and other specific items, and sentiment analysis to gauge emotional tone. IBM notes that dependency parsing looks at how words relate to each other — which one is the subject, which is the verb — and that these parse trees also underpin machine translation and speech recognition.

Working out what the user actually means

Spotting words is not the same as grasping intent. According to IBM, NLU applies semantic and syntactic analysis to interpret human-language input, aiming to grasp meaning and context holistically rather than word by word. This broader context is what can let a chatbot distinguish, for example, a financial 'bank' from a riverbank, based on the surrounding sentence or earlier turns in the conversation.

IBM describes intent recognition, entity recognition and the tracking of dependencies across a conversation as core elements of NLU: working out what a user is trying to accomplish, identifying real-world entities mentioned in the text, and keeping track of relationships across a long exchange so that a reply several messages later still makes sense in context.

Why transformer models changed the technology

Most chatbots in use today, including ChatGPT, Gemini and Claude, are built on the transformer architecture, introduced in the 2017 paper 'Attention Is All You Need' by Vaswani and colleagues. The paper presents an architecture built solely on attention mechanisms, removing the recurrence and convolution operations that earlier models relied on — a design that let computation run in parallel across a whole sentence instead of word by word, dramatically speeding up training. On the WMT 2014 translation benchmarks cited in the paper, the Transformer scored 28.4 BLEU for English-to-German and 41.8 BLEU for English-to-French, in each case surpassing earlier systems while training in a fraction of the time.

The core mechanism, self-attention, lets a model weigh how relevant every word in a passage is to every other word, not just to its immediate neighbors. According to IBM, each token is converted into three vectors — query, key and value — and the model calculates alignment scores between them to build weighted connections between all tokens, which IBM describes as more efficient than earlier architectures could achieve.

Large language models built on this architecture generate replies by predicting one token at a time. IBM summarizes the underlying process bluntly: "LLMs work as giant statistical prediction machines that repeatedly predict the next word in a sequence." The model tokenizes the input, converts it into embeddings, and repeatedly calculates probabilities for the next most likely token until a full response is produced.

Why this technology is suddenly everywhere

The practical result of these advances is now visible in adoption figures. A Pew Research Center survey of 5,119 U.S. adults, conducted February 17–23, 2026 and published June 17, 2026, found that 49% of U.S. adults now use AI chatbots, up from about a third in 2024 and 18% who said they used ChatGPT specifically in 2023. About a quarter of U.S. adults report using a chatbot daily, including 4% who say they use one almost constantly, per the same survey.

Share of U.S. adults who say they use each chatbot platform, 2026
PlatformShare of U.S. adults (Pew, 2026)
ChatGPT44%
Gemini24%
Copilot17%
Meta AI14%
Grok8%
Claude6%
Character.ai3%

Questions

What is the difference between NLP, NLU and NLG?
According to IBM, NLP is the overarching field covering how computers process human language. NLU is the subset focused on interpreting meaning, intent and context from input text, while NLG is the subset that generates human-readable output — a chatbot uses NLU to understand a message and NLG to produce its reply.
How does a chatbot know which meaning of a word I intend?
IBM explains that NLU systems use semantic and syntactic analysis plus context from earlier parts of the conversation to resolve ambiguous words, such as determining whether 'bank' refers to a financial institution or a riverbank based on surrounding text.
What made modern chatbots like ChatGPT possible?
The transformer architecture, introduced in the 2017 paper 'Attention Is All You Need,' replaced earlier recurrent models with a self-attention mechanism that processes whole sentences in parallel, which IBM says underlies today's large language models including GPT, Gemini and Llama.
Does a chatbot actually 'understand' language the way a person does?
Per IBM's description, large language models function as statistical prediction systems that repeatedly calculate the most probable next word based on patterns learned from training data, rather than possessing human-like comprehension.
How many people now use AI chatbots?
A Pew Research Center survey published June 17, 2026 found that 49% of U.S. adults use AI chatbots, with ChatGPT the most-used platform at 44%, followed by Gemini at 24% and Copilot at 17%.

Sources

  1. IBM — What Are Large Language Models (LLMs)?
  2. IBM — What Is NLP (Natural Language Processing)?
  3. IBM — What is Natural Language Understanding (NLU)?
  4. arXiv — Vaswani et al., "Attention Is All You Need" (2017)
  5. Pew Research Center — Americans and AI 2026: Chatbots, Smart Devices and Views on Impact

This piece was prepared with artificial intelligence and passed an automated source check before publication. If you see an error, ask for a correction. Request a correction or reply · How we make this

Related