---
title: "setCustomPronoun:forLanguage:error:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmorphology/setcustompronoun:forlanguage:error:"
---

# setCustomPronoun:forLanguage:error:

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

## Declaration

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

## Parameters

- `features`: A doc://com.apple.foundation/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

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

## Discussion

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

### Related Documentation

- [isSupportedForLanguage:](foundation/nsmorphologycustompronoun/issupportedforlanguage:.md)
- [requiredKeysForLanguage:](foundation/nsmorphologycustompronoun/requiredkeysforlanguage:.md)

### Accessing Per-Language Features

- [customPronounForLanguage:](foundation/nsmorphology/custompronounforlanguage:.md)
- [NSMorphologyCustomPronoun](foundation/nsmorphologycustompronoun.md)
