Constants for linguistic tagger enumeration specifying which tokens to omit and whether to join names.


struct Options



static var omitWords: NSLinguisticTagger.Options

Omit tokens of type word (items considered to be words).

static var omitWhitespace: NSLinguisticTagger.Options

Omit tokens of type whitespace (whitespace of all sorts).

static var omitOther: NSLinguisticTagger.Options

Omit tokens of type other (non-linguistic items, such as symbols).

static var joinNames: NSLinguisticTagger.Options

Typically, multiple-word names will be returned as multiple tokens, following the standard tokenization practice of the tagger. If this option is set, then multiple-word names will be joined together and returned as a single token.


Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software