Type Method

availableTagSchemes(forLanguage:)

Returns the tag schemes available for a particular language on the current device.

Declaration

class func availableTagSchemes(forLanguage language: String) -> [NSLinguisticTagScheme]

Parameters

language

A BCP-47 tag identifying the language. For example, "en" for English or "zh-Hans" for Chinese written using the Simplified Chinese script.

Return Value

The available tag schemes. For possible values, see NSLinguisticTagScheme.

Discussion

This is a convenience method for calling the availableTagSchemes(for:language:), passing NSLinguisticTaggerUnit.word as the linguistic unit.

See Also

Getting the Tag Schemes

class func availableTagSchemes(for: NSLinguisticTaggerUnit, language: String) -> [NSLinguisticTagScheme]

Returns the tag schemes available for a particular unit and language on the current device.

var tagSchemes: [NSLinguisticTagScheme]

Returns the tag schemes configured for this linguistic tagger. For possible values, see NSLinguisticTagScheme.