---
title: BETextAlternatives
framework: browserenginekit
role: symbol
role_heading: Class
path: browserenginekit/betextalternatives
---

# BETextAlternatives

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

## Declaration

```swift
class BETextAlternatives
```

## Overview

Overview The BETextInput protocol provides your app an instance of this class as an argument to the  alternativesForSelectedText() callback.

## Topics

### Considering alternative text

- [alternativeStrings](browserenginekit/betextalternatives/alternativestrings.md)

### Reviewing the source text

- [primaryString](browserenginekit/betextalternatives/primarystring.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Replacements and AutoFill

- [BEAutoFillTextSuggestion](browserenginekit/beautofilltextsuggestion.md)
- [BETextDocumentContext](browserenginekit/betextdocumentcontext.md)
- [BETextDocumentRequest](browserenginekit/betextdocumentrequest.md)
- [BETextDocumentRequest.Options](browserenginekit/betextdocumentrequest/options-swift.struct.md)
- [BETextSuggestion](browserenginekit/betextsuggestion.md)
- [BETextReplacementOptions](browserenginekit/betextreplacementoptions.md)
