<!--
{
  "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 -",
    "watchOS: 8.0.0 - 10.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Morphology/setCustomPronoun(_:forLanguage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation10MorphologyV16setCustomPronoun_11forLanguageyAC0dE0VSg_SStKF"
  },
  "title" : "setCustomPronoun(_:forLanguage:)"
}
-->

# setCustomPronoun(_:forLanguage:)

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

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

## Parameters

`pronoun`

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

`language`

The language the morphology should apply the custom pronoun to.

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

[`static func isSupported(forLanguage: String) -> Bool`](/documentation/Foundation/Morphology/CustomPronoun/isSupported(forLanguage:))

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

[`static func requiredKeys(forLanguage: String) -> [PartialKeyPath<Morphology.CustomPronoun>]`](/documentation/Foundation/Morphology/CustomPronoun/requiredKeys(forLanguage:))

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)