---
title: inflecting()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsattributedstring/inflecting()
---

# inflecting()

If the string has portions tagged with NSInflectionRuleAttributeName that have no format specifiers, create a new string with those portions inflected by following the rule in the attribute.

## Declaration

```swift
func inflecting() -> NSAttributedString
```
