Contents

lexicalClass

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

Declaration

static let lexicalClass: NSLinguisticTagScheme

Mentioned 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

Word

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

Punctuation

Sentenceterminator [Image] Openquote [Image] Closequote [Image] Openparenthesis [Image] Closeparenthesis [Image] Wordjoiner [Image] Dash [Image] Otherpunctuation

Whitespace

Paragraphbreak [Image] Otherwhitespace

Other

None

See Also

Schemes