Candidate

struct Candidate

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

Summary

Properties
CandidateType type
The type of the candidate.
Float score
The accuracy of the candidate.
[Replacement] replacements
An array of the text replacements that the candidate consists of.

Properties

type

let type: CandidateType

The type of the candidate.

score

let score: Float

The accuracy of the candidate.

replacements

let replacements: [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 August 8, 2022