Type Method

availableTagSchemesForLanguage:

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

Declaration

+ (NSArray<NSLinguisticTagScheme> *)availableTagSchemesForLanguage:(NSString *)language;

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 availableTagSchemesForUnit:language:, passing NSLinguisticTaggerUnitWord as the linguistic unit.

See Also

Getting the Tag Schemes

+ availableTagSchemesForUnit:language:

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

tagSchemes

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

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