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

# BETextAlternatives

An object that provides alternative text suggestions for a person’s text selection.

```
class BETextAlternatives
```

## Overview

The [`BETextInput`](/documentation/BrowserEngineKit/BETextInput) protocol provides your app an instance of this class as an argument to the  [`alternativesForSelectedText()`](/documentation/BrowserEngineKit/BETextInput/alternativesForSelectedText()) callback.

## Topics

### Considering alternative text

[`alternativeStrings`](/documentation/BrowserEngineKit/BETextAlternatives/alternativeStrings)

An array of strings that represent alternatives to the currently selected text.

### Reviewing the source text

[`primaryString`](/documentation/BrowserEngineKit/BETextAlternatives/primaryString)

The original text that the alternatives derive from.



---

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)