<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextDocumentContext/autocorrectedRanges",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BETextDocumentContext(py)autocorrectedRanges"
  },
  "title" : "autocorrectedRanges"
}
-->

# autocorrectedRanges

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

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

## 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:)`](/documentation/BrowserEngineKit/BETextDocumentContext/init(attributedSelectedText:contextBefore:contextAfter:markedText:selectedRangeInMarkedText:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)