Contents

NSMorphologyCustomPronoun

A custom pronoun behavior for use in a specific langauge.

Declaration

@interface NSMorphologyCustomPronoun : NSObject

Overview

Set a NSMorphologyCustomPronoun instance on a NSMorphology 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 = [[NSMorphologyCustomPronoun alloc] init];
ze.subjectForm = "ze";
ze.objectForm = "hir";
ze.possessiveForm = "hir";
ze.possessiveAdjectiveForm = "hir";
ze.reflexiveForm = "hirself";

NSMorphologyCustomPronoun only supports third-person pronouns. Use this feature when your app needs to refer to third parties with a specific pronoun.

Topics

Assessing Custom Pronoun Support

Determining Pronoun Forms

See Also

Accessing Per-Language Features