---
title: inflectionRule
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/inflectionrule
---

# inflectionRule

An attribute that tells the system how to apply grammar rules and other modifiers to the range of text.

## Declaration

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

## Discussion

Discussion The value of this key is an NSInflectionRule object.

## See Also

### Getting translation-related attribute keys

- [languageIdentifier](foundation/nsattributedstring/key/languageidentifier.md)
- [morphology](foundation/nsattributedstring/key/morphology.md)
- [inflectionAlternative](foundation/nsattributedstring/key/inflectionalternative.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)
