<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLTagScheme/lexicalClass",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Natural Language",
      "NaturalLanguage"
    ],
    "preciseIdentifier" : "c:@NLTagSchemeLexicalClass"
  },
  "title" : "lexicalClass"
}
-->

# lexicalClass

A scheme that classifies tokens according to class: part of speech, type of punctuation, or whitespace.

```
static let lexicalClass: NLTagScheme
```

## Discussion

For possible values, see Lexical classes in [`NLTag`](/documentation/NaturalLanguage/NLTag).

The lexical class of a tag is a further distinction of its token type. Token types and lexical classes have the following correspondence:

|Token Type                                                                         |Lexical classes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/word``       |``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/noun`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/verb`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/adjective`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/adverb`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/pronoun`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/determiner`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/particle`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/preposition`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/number`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/conjunction`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/interjection`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/classifier`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/idiom`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/otherWord``|
|``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/punctuation``|``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/sentenceTerminator`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/openQuote`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/closeQuote`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/openParenthesis`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/closeParenthesis`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/wordJoiner`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/dash`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/otherPunctuation``                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/whitespace`` |``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/paragraphBreak`` ![](spacer) ``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/otherWhitespace``                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|``doc://com.apple.naturallanguage/documentation/NaturalLanguage/NLTag/other``      |*None*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)