Returns the tag schemes available for a particular unit and language on the current device.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Foundation
Declaration
+ (NSArray<NSLinguistic Tag Scheme> *)availableTagSchemesForUnit:(NSLinguistic Tagger Unit)unit language:(NSString *)language;
Parameters
unit
The linguistic unit. For possible values, see
NSLinguistic
.Tagger Unit 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 supported tag schemes. For possible values, see NSLinguistic
.