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.
| Platform | Share of U.S. adults (Pew, 2026) |
|---|---|
| ChatGPT | 44% |
| Gemini | 24% |
| Copilot | 17% |
| Meta AI | 14% |
| Grok | 8% |
| Claude | 6% |
| Character.ai | 3% |
- Tokenization: text is split into words or sub-word units the model can process
- Normalization: lowercasing and removing irrelevant characters or filler words
- Parsing and entity recognition: grammar and key entities (names, dates, places) are identified
- Intent and context analysis (NLU): the system works out what the user wants, using prior turns to resolve ambiguity
- Response generation (NLG): the model predicts and assembles the next tokens, one at a time, into a reply
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
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

Artificial intelligenceArticle
How Neural Networks Learn: The Math Behind ChatGPT and Gemini
Neural networks learn by making a prediction, measuring how wrong it was with a loss function, and then adjusting internal values called weights backward through the network — a process called backpropagation paired with an optimisation method called gradient descent. The same mechanics, scaled to billions of parameters, underlie how systems such as ChatGPT and Gemini are first trained and then adapted to specific tasks through fine-tuning.

Artificial intelligenceArticle
How AI Generates Art and Music, and Why "True Creativity" Remains Disputed
AI image tools like Midjourney and Stable Diffusion build pictures by learning to reverse a noise process, while music tools like Suno and Udio compress audio into tokens and predict them step by step, guided by a text prompt. Whether either process counts as genuine creativity is unresolved: researchers are split between calling it pattern-based "remixing" and crediting it with measurable creative performance.
Artificial intelligenceArticle
Why Moonshot Deliberately Weakened Its New Kimi AI Model's Hacking Skills
Chinese AI lab Moonshot says it removed cyber-related training data from its new Kimi K3.1 Pro model so the open-weight system would not push the "frontier" of offensive hacking capability. The move, announced Saturday, October 24, 2026, comes as governments and security researchers warn that increasingly capable AI could make sophisticated cyberattacks cheaper and easier to carry out.
Artificial intelligenceArticle
How AI Text Detectors Work, Explained Through a Prize-Winning Novel Dispute
AI text detectors do not prove who wrote something; they estimate a probability by measuring statistical patterns such as word predictability and sentence-length variation. A detector called Pangram 4.1 recently attributed 99% of a €20,000 prize-winning Spanish-language novel to artificial intelligence, prompting its publisher to suspend promotional events while it investigates.