Contents

requiredKeys(forLanguage:)

Returns a collection of the custom pronoun keys required by this language.

Declaration

static func requiredKeys(forLanguage language: String) -> [PartialKeyPath<Morphology.CustomPronoun>]

Parameters

  • language:

    The language to create a custom pronoun for.

Return Value

The keys required for the given language.

Discussion

If any of the required keys for a given language are unset, calling setCustomPronoun(_:forLanguage:) for that language with an incomplete Morphology.CustomPronoun instance throws an error.

See Also

Assessing Custom Pronoun Support