CandidateType

enum CandidateType

A type that contains the type of Candidates.

Summary

Enumeration Cases
autocorrection The word at the cursor is predicted, one or more replacements are offered.
autocompletion The word at the cursor was misspelled, one or more corrections are needed.
dictionary A word that is present in the dictionary.
emoji A word could be added or replaced by an emoji.
other
prediction The next word at the cursor is predicted, one or more additions are offered.

Enumeration Cases

autocorrection

case autocorrection

The word at the cursor was misspelled, one or more corrections are needed.
Example: “Hello wrld|” => [(“world”, 6-10), (“wald”, 6-10), (“weld”, 6-10)]

autocompletion

case autocompletion

The next word at the cursor is predicted, one or more additions are offered.
Example: “Hello grand|” => [(“grandparent”, 6-11), (“granddaughter”, 6-11), …]

dictionary

case dictionary

A word that is present in the dictionary.
Example dictionary word: “The art|” => [(“art”, 5-7, dictionary), (“article”, 5-7, autocompletion)]

emoji

case emoji

A word could be added or replaced by an emoji.
Example emoji suggestion: “A rose|” => [("🌹", 2-6)]

other

case other

prediction

case prediction

The next word at the cursor is predicted, one or more additions are offered.
Example: “Hello |” => [(“world,6-6”), (“there”, 6-6)]


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