# Natural language processing (NLP)

> Canonical: https://skillalmanac.com/glossary/natural-language-processing | Last verified: 2026-11-24 | Index status: index-eligible

Natural language processing (NLP) is the field of computer science and AI concerned with getting computers to read, understand and generate human language, using methods that range from rules and statistics to machine learning and large language models.

Also called: NLP, AI NLP, what is NLP in AI, AI and natural language processing, AI language processing, NLP AI.

## In plain language

Natural language processing is the work of teaching computers to deal with human language: reading it, sorting it, translating it and writing it. Spell checkers, search boxes, translation tools and chat assistants all rely on it. The task list is long. Finding the names of people in a text, working out what a pronoun refers to, and picking the right meaning of a word with several meanings are all classic examples. Today's chat assistants are one result of this field.

## Technical definition

NLP studies computational methods for human language. Tasks include tagging, entity recognition, parsing, classification and translation. Methods include linguistic rules, statistical models and neural networks. A pretrained language model can be adapted by prompting or fine-tuning; it is one approach rather than a requirement for the field.

## How it shows up when you use agents

A language-based coding agent processes instructions with a [large language model](/glossary/large-language-model) and may produce text or tool calls. The field's vocabulary explains what you see.

The text is cut into [tokens](/glossary/token) before the model reads it. Tasks that used to need separate tools, such as extracting entities, classifying text or translating it, now often go to the same model with a prompt. Those outputs still need task-specific evaluation.

In practice, many agent tasks mix both approaches. A rule-based step, like the [text entity extractor](/skills/skill-almanac/text-entity-extractor), is exact and repeatable for fixed patterns such as URLs and dates. A learned model may help with judgments such as tone or meaning, but suitability must be evaluated for the task.

What breaks when the term is misunderstood: people treat NLP and LLMs as the same thing and reach for a model when a regular expression would do, or trust a model's output on a task like translation without a mechanical check. See [Transformer](/glossary/transformer) for one architecture used in neural NLP.

## Worked example (illustrative)

Suppose an application extracts the URL from “Read https://example.com/ before replying.” A fixed URL rule can handle that narrow extraction task without a language model. Deciding what “it” refers to in a paragraph is a different language-processing task and requires a method evaluated for that purpose. This is a task illustration, not a claim that one method solves all NLP.

## Common confusions

- **NLP versus LLM.** NLP is the field. An LLM is one family of models used for NLP tasks. See [Large language model](/glossary/large-language-model).
- **NLP versus generative AI.** NLP also covers analysis tasks, such as tagging and classification, that generate nothing. See [Generative AI](/glossary/generative-ai).
- **Myth: NLP began with chatbots.** The field predates them. IBM describes it as combining computational linguistics with statistical, machine learning and deep learning methods.
- **NLP versus speech recognition.** Turning audio into text is a related task. Language processing can also involve speech; NLP is not defined by a text-only input requirement.

## Worked examples in this catalogue

### [text-entity-extractor](https://skillalmanac.com/skills/skill-almanac/text-entity-extractor)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A report of URLs, hashtags, @mentions and ISO or numeric dates found in one plain UTF-8 text file, with counts and first occurrences.

Why it exercises the concept: Pulling structured items out of free text is a small case of information extraction, one of the classic NLP tasks. Here it is done with fixed rules and not a learned model.

### [translation-and-localization](https://skillalmanac.com/skills/skill-almanac/translation-and-localization)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Translated UI strings and docs, checked for protected placeholders, glossary terms and length limits.

Why it exercises the concept: Machine translation is a long-standing NLP task. The skill shows where a language model's output still needs mechanical checks.

### [plain-language-readability](https://skillalmanac.com/skills/skill-almanac/plain-language-readability)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Public and customer text rewritten to a target reading level, with the change measured and numbers and links checked.

Why it exercises the concept: Measuring how hard text is to read, and rewriting it, are text-analysis tasks that sit within NLP.

### [What Is an LLM? The Facts Agent Users Need](https://skillalmanac.com/learn/what-is-an-llm-for-agent-users)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An explanation of what a large language model can and cannot do, from the point of view of someone running a coding agent.

Why it exercises the concept: Large language models are the current dominant approach to NLP. The guide covers what that means in daily use.

## Related terms

- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Transformer](https://skillalmanac.com/glossary/transformer.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Generative AI (gen AI)](https://skillalmanac.com/glossary/generative-ai.md)
- [Token](https://skillalmanac.com/glossary/token.md)
- [Recurrent neural network (RNN)](https://skillalmanac.com/glossary/recurrent-neural-network.md)
- [Question answering (QA)](https://skillalmanac.com/glossary/question-answering.md)
- [Part-of-speech tagging (POS tagging)](https://skillalmanac.com/glossary/part-of-speech-tagging.md)

## Sources

- [What Is NLP (Natural Language Processing)?](https://www.ibm.com/think/topics/natural-language-processing), IBM (accessed 2026-11-23)
- [Speech and Language Processing (3rd edition draft)](https://web.stanford.edu/~jurafsky/slp3/), Stanford University (Jurafsky and Martin) (accessed 2026-11-23)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
