<!--
{
  "availability" : [
    "iOS: 5.0.0 - 27.0.0",
    "iPadOS: 5.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.7.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSLinguisticTagScheme/lexicalClass",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSLinguisticTagSchemeLexicalClass"
  },
  "title" : "lexicalClass"
}
-->

# lexicalClass

Classifies tokens according to class:  part of speech, type of punctuation, or whitespace.

```
static let lexicalClass: NSLinguisticTagScheme
```

## Discussion

For possible values, see Lexical Classes.

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.foundation/documentation/Foundation/NSLinguisticTag/word``       |``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/noun`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/verb`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/adjective`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/adverb`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/pronoun`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/determiner`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/particle`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/preposition`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/number`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/conjunction`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/interjection`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/classifier`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/idiom`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/otherWord``|
|``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/punctuation``|``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/sentenceTerminator`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/openQuote`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/closeQuote`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/openParenthesis`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/closeParenthesis`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/wordJoiner`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/dash`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/otherPunctuation``                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/whitespace`` |``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/paragraphBreak`` ![](spacer) ``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/otherWhitespace``                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|``doc://com.apple.foundation/documentation/Foundation/NSLinguisticTag/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)