Candidate

data class Candidate

A candidate for autocorrection, next word prediction or swipe typing.

Summary

Constructors
Candidate(type: CandidateType, score: Float, replacements: List<Replacement>)
Properties
CandidateType type
The type of the candidate.
Float score
The accuracy of the candidate.
List<Replacement> replacements
An array of the text replacements that the candidate consists of.

Constructors

Candidate

Candidate(type: CandidateType, score: Float, replacements: List<Replacement>)
Parameters
type: CandidateType The type of the candidate.
score: Float The accuracy of the candidate.
replacements: List<Replacement> An array of the text replacements that the candidate consists of.

Properties

type

val type: CandidateType

The type of the candidate.

score

val score: Float

The accuracy of the candidate.

replacements

val replacements: List<Replacement>

An array of the text replacements that the candidate consists of.


If something needs to be added or if you find an error in our documentation, please let us know either on our GitHub or Discord.

Last updated on July 29, 2022