---
title: autocorrectedRanges
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/betextdocumentcontext/autocorrectedranges
---

# autocorrectedRanges

An array of ranges that identify text the system autocorrects, relative to the context string.

## Declaration

```swift
var autocorrectedRanges: [NSValue] { get set }
```

## Discussion

Discussion The context string is the concatenation of the initializer parameters contextBefore, markedText (or selectedText when marked text is empty), and contextAfter. For more information, see init(attributedSelectedText:contextBefore:contextAfter:markedText:selectedRangeInMarkedText:).
