---
title: NSLinguisticTag
framework: foundation
role: symbol
role_heading: Structure
path: foundation/nslinguistictag
---

# NSLinguisticTag

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

## Declaration

```swift
struct NSLinguisticTag
```

## Overview

Overview When you create a linguistic tagger, you specify one or more NSLinguisticTagScheme 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, the returned value depends on the specified scheme. The NSLinguisticTag type represents the constant values that can be returned for certain NSLinguisticTagScheme values.

## Topics

### Token Types

- [word](foundation/nslinguistictag/word.md)
- [punctuation](foundation/nslinguistictag/punctuation.md)
- [whitespace](foundation/nslinguistictag/whitespace.md)
- [other](foundation/nslinguistictag/other.md)

### Lexical Classes

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

### Name Types

- [personalName](foundation/nslinguistictag/personalname.md)
- [organizationName](foundation/nslinguistictag/organizationname.md)
- [placeName](foundation/nslinguistictag/placename.md)

### Initializers

- [init(_:)](foundation/nslinguistictag/init(_:).md)
- [init(rawValue:)](foundation/nslinguistictag/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

### Supporting Types

- [NSLinguisticTagScheme](foundation/nslinguistictagscheme.md)
- [NSLinguisticTaggerUnit](foundation/nslinguistictaggerunit.md)
