setCustomPronoun(_:forLanguage:)
Sets a custom pronoun behavior for this morphology to apply to the given language.
Declaration
mutating func setCustomPronoun(_ pronoun: Morphology.CustomPronoun?, forLanguage language: String) throwsParameters
- pronoun:
A Custompronoun instance for the morphology to use.
- language:
The language the morphology should apply the custom pronoun to.
Discussion
This method throws if the system doesn’t support custom pronouns for the given language, or if any of the required pronoun keys aren’t set.