# Named entity recognition (NER)

> Canonical: https://skillalmanac.com/glossary/named-entity-recognition | Last verified: 2026-11-25 | Index status: index-eligible

Named entity recognition (NER) is the task of finding spans of text that name things such as people, organisations, places, dates or amounts, and labelling each span with its type.

Also called: NER, NER NLP, entity extraction, named entity extraction, named entity tagging.

## In plain language

NER is highlighting the proper nouns in a text and saying what kind each one is. In the sentence Maria joined Acme in Berlin on Monday, an NER tool would mark Maria as a person, Acme as an organisation, Berlin as a place and Monday as a date. Teams use it to pull names and amounts out of contracts, news and tickets so they can be searched or sorted. It can go wrong. The word Apple might mean a fruit or a company, a tool built for news may miss drug names in medical notes, and a name it has never seen can slip through. Check the output on your own documents before you rely on it.

## Technical definition

NER is usually framed as sequence labeling: the model assigns a tag to each token, often in a scheme that marks where an entity starts and continues, so that spans can be recovered. The Stanford textbook Speech and Language Processing says four tags are most common, PER for person, LOC for location, ORG for organization and GPE for geo-political entity, and that the notion is commonly extended to temporal and numerical expressions. IBM describes rule-based, machine learning and hybrid approaches. It says machine learning models generalize better to unseen data but need a large amount of labeled training data, and that nested entities and domain-specific names are hard. A general language model can also be prompted to list entities as structured output.

## How it shows up when you use agents

You meet NER whenever an agent has to turn free text into structured fields: who signed a contract, which company a ticket is about, which dates a letter mentions. Today this is often done by prompting a general [large language model](/glossary/large-language-model) to return a list, or by a smaller model trained for the job. It is a core task in [natural language processing](/glossary/natural-language-processing). Simple entities with a fixed shape, such as emails, URLs or dates, can be found by rules without any model.

What breaks when it is misunderstood: treating the output as complete, so a missed name or a wrong type goes unnoticed, and using a general model on a specialised field such as medicine, where IBM notes that models may struggle with entities specific to a certain domain. Ambiguous names like Apple or Jordan also need context.

Next action: label a small sample of your own documents by hand, run the tool, and count misses and wrong types before you trust it at scale. For fixed-shape entities, try [text-entity-extractor](/skills/skill-almanac/text-entity-extractor) or [email-address-extractor-validator](/skills/skill-almanac/email-address-extractor-validator) first, since rules are easy to inspect.

## Common confusions

- **NER versus keyword search.** Search finds the strings you typed. NER finds spans that are names and assigns a type, including names you did not list in advance.
- **NER versus entity linking.** NER finds and types a mention. Linking decides which real-world item it refers to, such as Apple the company or Apple the fruit.
- **NER versus sentiment analysis.** NER finds what is named. Sentiment analysis judges the attitude of the text. See [Sentiment analysis](/glossary/sentiment-analysis).
- **Myth.** NER only covers people, places and organisations. The Stanford textbook says the notion is commonly extended to dates, times and prices, and IBM lists values such as medical codes and percentages.

## 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: URLs, hashtags, @mentions and ISO or numeric dates pulled from one plain UTF-8 text file, with counts, the first line and every line number reported.

Why it exercises the concept: It extracts a fixed set of entity types by pattern, a rule-based cousin of NER. It does not find the names of people or organisations, which is where a trained NER model or a language model comes in.

### [email-address-extractor-validator](https://skillalmanac.com/skills/skill-almanac/email-address-extractor-validator)

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

What you see: Email addresses extracted from a plain text file or pasted contact list, checked for syntax errors, with repeated addresses flagged.

Why it exercises the concept: Email addresses are one entity type with a regular shape, so a rule can find them. It shows extraction followed by validation, a step NER output also needs.

### [sensitive-data-redaction](https://skillalmanac.com/skills/skill-almanac/sensitive-data-redaction)

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

What you see: Emails, phones, cards, IBANs, keys, IPs and listed names in a file replaced with consistent placeholders before you share it.

Why it exercises the concept: Redaction needs entities found first. This skill matches patterns and a list of names you supply, so a name missing from the list is not caught, which a trained NER model could help with.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
claude
```

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

What you see: Claude Code's overview shows files and command output passed to a one-line instruction with claude -p, such as listing changed files for a review request.

Why it exercises the concept: The same pattern can pass a document to a model with an instruction to list the people, organisations and dates it names, which is NER with a general model.

## Related terms

- [Natural language processing (NLP)](https://skillalmanac.com/glossary/natural-language-processing.md)
- [Sentiment analysis](https://skillalmanac.com/glossary/sentiment-analysis.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Large language model (LLM)](https://skillalmanac.com/glossary/large-language-model.md)
- [Training data](https://skillalmanac.com/glossary/training-data.md)

## Sources

- [What is named entity recognition (NER)?](https://www.ibm.com/think/topics/named-entity-recognition), IBM (accessed 2026-11-24)
- [Masked Language Models (Speech and Language Processing, chapter 9, section on named entities)](https://web.stanford.edu/~jurafsky/slp3/9.pdf), Stanford University (Jurafsky and Martin) (accessed 2026-11-24)

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