nvim_runtime_lua

vim._core.spell.Suggestion

Fields5

Suggestion.word : string

The suggested replacement.

Suggestion.extra : nil | string

Text replaced when wider than the bad span.

Suggestion.score : integer

Primary score.

Suggestion.altscore : nil | integer

Secondary score (only set when 'spellsuggest' contains "double" or "best").

Suggestion.salscore : nil | boolean

True if the score came from sound-alike comparison (only set alongside altscore).