Type Method

availableTagSchemes(for:language:)

Retrieves the tag schemes available for a particular unit (like word or sentence) and language on the current device.

Declaration

class func availableTagSchemes(for unit: NLTokenUnit, language: NLLanguage) -> [NLTagScheme]

Parameters

unit

The linguistic unit. For possible values, see NLTokenUnit.

language

The NLLanguage identifying the language.

Return Value

The supported tag schemes. For possible values, see NLTagScheme.

See Also

Getting the Tag Schemes

class func requestAssets(for: NLLanguage, tagScheme: NLTagScheme, completionHandler: (NLTagger.AssetsResult, Error?) -> Void)

Asks the Natural Language framework to load any missing assets for a tag scheme onto the device for the given language.

Beta
enum NLTagger.AssetsResult

The response to an asset request.

Beta
var tagSchemes: [NLTagScheme]

The tag schemes configured for this linguistic tagger.

struct NLTagScheme

Constants for the tag schemes specified when initializing a 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