---
title: "requiredKeys(forLanguage:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/morphology/custompronoun/requiredkeys(forlanguage:)"
---

# requiredKeys(forLanguage:)

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

## Declaration

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

## Parameters

- `language`: The language to create a custom pronoun for.

## Return Value

Return Value The keys required for the given language.

## Discussion

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

## See Also

### Assessing Custom Pronoun Support

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