---
title: NLTag
framework: naturallanguage
role: symbol
role_heading: Structure
path: naturallanguage/nltag
---

# NLTag

A token type, lexical class, name, lemma, language, or script returned by a linguistic tagger for natural language text.

## Declaration

```swift
struct NLTag
```

## Overview

Overview When you create a linguistic tagger, you specify one or more NLTagScheme constants that correspond to the kind of information you want to know about a selection of natural language text. When working with linguistic tags using the methods described in Getting linguistic tags and Enumerating linguistic tags in NLTagger, the returned value depends on the specified scheme. The NLTag type represents the constant values that can be returned for certain NLTagScheme values.

## Topics

### Token types

- [word](naturallanguage/nltag/word.md)
- [punctuation](naturallanguage/nltag/punctuation.md)
- [whitespace](naturallanguage/nltag/whitespace.md)
- [other](naturallanguage/nltag/other.md)

### Lexical classes

- [noun](naturallanguage/nltag/noun.md)
- [verb](naturallanguage/nltag/verb.md)
- [adjective](naturallanguage/nltag/adjective.md)
- [adverb](naturallanguage/nltag/adverb.md)
- [pronoun](naturallanguage/nltag/pronoun.md)
- [determiner](naturallanguage/nltag/determiner.md)
- [particle](naturallanguage/nltag/particle.md)
- [preposition](naturallanguage/nltag/preposition.md)
- [number](naturallanguage/nltag/number.md)
- [conjunction](naturallanguage/nltag/conjunction.md)
- [interjection](naturallanguage/nltag/interjection.md)
- [classifier](naturallanguage/nltag/classifier.md)
- [idiom](naturallanguage/nltag/idiom.md)
- [otherWord](naturallanguage/nltag/otherword.md)
- [sentenceTerminator](naturallanguage/nltag/sentenceterminator.md)
- [openQuote](naturallanguage/nltag/openquote.md)
- [closeQuote](naturallanguage/nltag/closequote.md)
- [openParenthesis](naturallanguage/nltag/openparenthesis.md)
- [closeParenthesis](naturallanguage/nltag/closeparenthesis.md)
- [wordJoiner](naturallanguage/nltag/wordjoiner.md)
- [dash](naturallanguage/nltag/dash.md)
- [otherPunctuation](naturallanguage/nltag/otherpunctuation.md)
- [paragraphBreak](naturallanguage/nltag/paragraphbreak.md)
- [otherWhitespace](naturallanguage/nltag/otherwhitespace.md)

### Name types

- [personalName](naturallanguage/nltag/personalname.md)
- [organizationName](naturallanguage/nltag/organizationname.md)
- [placeName](naturallanguage/nltag/placename.md)

### Initializers

- [init(_:)](naturallanguage/nltag/init(_:).md)
- [init(rawValue:)](naturallanguage/nltag/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerating linguistic tags

- [enumerateTags(in:unit:scheme:options:using:)](naturallanguage/nltagger/enumeratetags(in:unit:scheme:options:using:).md)
- [NLTagger.Options](naturallanguage/nltagger/options.md)
