---
title: "setCustomPronoun(_:forLanguage:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/morphology/setcustompronoun(_:forlanguage:)"
---

# setCustomPronoun(_:forLanguage:)

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

## Declaration

```swift
mutating func setCustomPronoun(_ pronoun: Morphology.CustomPronoun?, forLanguage language: String) throws
```

## Parameters

- `pronoun`: A doc://com.apple.foundation/documentation/Foundation/Morphology/CustomPronoun instance for the morphology to use.
- `language`: The language the morphology should apply the custom pronoun to.

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

- [isSupported(forLanguage:)](foundation/morphology/custompronoun/issupported(forlanguage:).md)
- [requiredKeys(forLanguage:)](foundation/morphology/custompronoun/requiredkeys(forlanguage:).md)

### Accessing Per-Language Features

- [customPronoun(forLanguage:)](foundation/morphology/custompronoun(forlanguage:).md)
- [Morphology.CustomPronoun](foundation/morphology/custompronoun.md)
