<!--
{
  "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/CustomPronoun/requiredKeys(forLanguage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation10MorphologyV13CustomPronounV12requiredKeys11forLanguageSays14PartialKeyPathCyAEGGSS_tFZ"
  },
  "title" : "requiredKeys(forLanguage:)"
}
-->

# requiredKeys(forLanguage:)

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

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

## Parameters

`language`

The language to create a custom pronoun for.

## Return Value

The keys required for the given language.

## Discussion

If any of the required keys for a given language are unset, calling [`setCustomPronoun(_:forLanguage:)`](/documentation/Foundation/Morphology/setCustomPronoun(_:forLanguage:)) for that language with an incomplete [`Morphology.CustomPronoun`](/documentation/Foundation/Morphology/CustomPronoun) instance throws an error.

---

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)