---
title: inflectionAlternative
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/inflectionalternative
---

# inflectionAlternative

The alternative translation for a string when no suitable inflection exists.

## Declaration

```swift
static let inflectionAlternative: NSAttributedString.Key
```

## Discussion

Discussion In languages that change the form of words to match someone’s gender, the system can automatically change (or inflect) the gender to match someone’s personal preferences. If a suitable inflection doesn’t exist, the system uses the value of this attribute instead. Add this attribute to specify a suitable translation that applies to anyone. For example, if a language has only masculine and feminine genders, specify an appropriately neutral translation of the text. The value of this key is an NSString with the replacement phrase to use.

## See Also

### Getting translation-related attribute keys

- [languageIdentifier](foundation/nsattributedstring/key/languageidentifier.md)
- [morphology](foundation/nsattributedstring/key/morphology.md)
- [inflectionRule](foundation/nsattributedstring/key/inflectionrule.md)
- [agreeWithArgument](foundation/nsattributedstring/key/agreewithargument.md)
- [agreeWithConcept](foundation/nsattributedstring/key/agreewithconcept.md)
- [referentConcept](foundation/nsattributedstring/key/referentconcept.md)
- [localizedNumberFormat](foundation/nsattributedstring/key/localizednumberformat.md)
