Classifies tokens according to class: part of speech, type of punctuation, or whitespace.
- iOS 5.0+
- macOS 10.7+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
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: