<!--
{
  "availability" : [
    "iOS: 15.0.0 - 17.0.0",
    "iPadOS: 15.0.0 - 17.0.0",
    "macCatalyst: 15.0.0 - 17.0.0",
    "macOS: 12.0.0 - 14.0.0",
    "tvOS: 15.0.0 - 17.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 8.0.0 - 10.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSMorphology/setCustomPronoun:forLanguage:error:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMorphology(im)setCustomPronoun:forLanguage:error:"
  },
  "title" : "setCustomPronoun:forLanguage:error:"
}
-->

# setCustomPronoun:forLanguage:error:

Sets a custom pronoun behavior for this morphology to apply to the given language.

```
- (BOOL) setCustomPronoun:(NSMorphologyCustomPronoun *) features forLanguage:(NSString *) language error:(NSError **) error;
```

## Parameters

`features`

A [`NSMorphologyCustomPronoun`](/documentation/Foundation/NSMorphologyCustomPronoun) instance for the morphology to use.

`language`

The language the morphology applies the custom pronoun to.

`error`

On return, any error encountered while setting the custom pronoun, or `nil` if no error occurred.

## Return Value

A Boolean value that indicates whether setting the custom pronoun succeeded.

## 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.

## See Also

[`+ (BOOL) isSupportedForLanguage:(NSString *) language;`](/documentation/Foundation/NSMorphologyCustomPronoun/isSupportedForLanguage:)

Returns a Boolean value that indicates whether the given language supports setting custom pronouns.

[`+ (NSArray<NSString *> *) requiredKeysForLanguage:(NSString *) language;`](/documentation/Foundation/NSMorphologyCustomPronoun/requiredKeysForLanguage:)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)