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

# morphology

An attribute that contains grammatical properties to apply to the text.

## Declaration

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

## Discussion

Discussion The value of this property is an NSMorphology object. Use the value to determine the appropriate gender and other grammatical rules to apply to the text.

## See Also

### Getting translation-related attribute keys

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