Morphology.CustomPronoun
A custom pronoun behavior for use in a specific langauge.
Declaration
struct CustomPronounOverview
Set a Morphology.CustomPronoun instance on a Morphology instance when you want to provide a langauge-specific customization of pronoun use in that language. Different languages have different requirements for the grammatical information needed to apply a custom pronoun, so you set custom pronoun behavior on a per-language basis.
The example below shows how to create English “ze” and “hir” custom pronouns:
let ze = Morphology.CustomPronoun()
ze.subjectForm = "ze"
ze.objectForm = "hir"
ze.possessiveForm = "hir"
ze.possessiveAdjectiveForm = "hir"
ze.reflexiveForm = "hirself"Morphology.CustomPronoun only supports third-person pronouns. Use this feature when your app needs to refer to third parties with a specific pronoun.