lexicalClass
Classifies tokens according to class: part of speech, type of punctuation, or whitespace.
Declaration
static let lexicalClass: NSLinguisticTagSchemeMentioned in
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 |
|---|---|
Noun [Image] Verb [Image] Adjective [Image] Adverb [Image] Pronoun [Image] Determiner [Image] Particle [Image] Preposition [Image] Number [Image] Conjunction [Image] Interjection [Image] Classifier [Image] Idiom [Image] Otherword | |
Sentenceterminator [Image] Openquote [Image] Closequote [Image] Openparenthesis [Image] Closeparenthesis [Image] Wordjoiner [Image] Dash [Image] Otherpunctuation | |
Paragraphbreak [Image] Otherwhitespace | |
None |