---
title: "stringEdited(in:changeInLength:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nslinguistictagger/stringedited(in:changeinlength:)"
---

# stringEdited(in:changeInLength:)

Notifies the linguistic tagger that the string (if mutable) has changed as specified by the parameters.

## Declaration

```swift
func stringEdited(in newRange: NSRange, changeInLength delta: Int)
```

## Parameters

- `newRange`: The range in the final string that was edited.
- `delta`: The change in length.
