---
title: Natural Language
framework: Natural Language
role: collection
role_heading: Framework
platforms: [iOS 12.0+, iPadOS 12.0+, Mac Catalyst 13.0+, macOS 10.14+, tvOS 12.0+, visionOS 1.0+, watchOS 5.0+]
path: naturallanguage
---

# Natural Language

Analyze natural language text and deduce its language-specific metadata.

## Overview

Overview The Natural Language framework provides a variety of natural language processing (NLP) functionality with support for many different languages and scripts. Use this framework to segment natural language text into paragraphs, sentences, or words, and tag information about those segments, such as lexical class, lemma, script, and language.

Use this framework to perform tasks like: Language identification, automatically detecting the language of a piece of text. Tokenization, breaking up a piece of text into linguistic units or tokens. Parts-of-speech tagging, marking up individual words with their part of speech. Lemmatization, deducing a word’s stem based on its morphological analysis. Named entity recognition, identifying tokens as names of people, places, or organizations. Sentiment classification, scoring text on a scale from negative to positive. Text embedding, mapping words and sentences to vectors so you can measure the similarity between pieces of text, using either word and sentence embeddings or transformer-based contextual embeddings. You can also use this framework with Create ML to train and deploy custom natural language models. For more information, see Creating a text classifier model and Creating a word tagger model.

## Topics

### Tokenization

- [Tokenizing natural language text](naturallanguage/tokenizing-natural-language-text.md)
- [NLTokenizer](naturallanguage/nltokenizer.md)

### Language identification

- [Identifying the language in text](naturallanguage/identifying-the-language-in-text.md)
- [NLLanguageRecognizer](naturallanguage/nllanguagerecognizer.md)
- [NLLanguage](naturallanguage/nllanguage.md)

### Linguistic tags

- [Identifying parts of speech](naturallanguage/identifying-parts-of-speech.md)
- [Identifying people, places, and organizations](naturallanguage/identifying-people-places-and-organizations.md)
- [NLTagger](naturallanguage/nltagger.md)

### Text embedding

- [Finding similarities between pieces of text](naturallanguage/finding-similarities-between-pieces-of-text.md)
- [NLEmbedding](naturallanguage/nlembedding.md)

### Contextual embedding

- [NLContextualEmbedding](naturallanguage/nlcontextualembedding.md)
- [NLContextualEmbeddingKey](naturallanguage/nlcontextualembeddingkey.md)
- [NLScript](naturallanguage/nlscript.md)

### Natural language models

- [Creating a text classifier model](createml/creating-a-text-classifier-model.md)
- [Creating a word tagger model](createml/creating-a-word-tagger-model.md)
- [NLModel](naturallanguage/nlmodel.md)
