Creates a linguistic tagger instance using the specified tag schemes and options.


init(tagSchemes: [NSLinguisticTagScheme], options opts: Int)



An array of tag schemes to be used. See NSLinguisticTagScheme for the possible values.


Reserved for future use. Specify 0 for this parameter.

Return Value

An initialized linguistic tagger.


Pass any tag schemes to tagSchemes that you intend to use with the methods described in Enumerating Linguistic Tags and Getting Linguistic Tags.

See Also

First Steps

Tokenizing Natural Language Text

Enumerate the words in a string.

var string: String?

The string being analyzed by the linguistic tagger.

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