19#ifndef NUSPELL_SUGGESTER_HXX
20#define NUSPELL_SUGGESTER_HXX
25NUSPELL_BEGIN_INLINE_NAMESPACE
27struct NUSPELL_EXPORT Suggester :
public Checker {
29 enum High_Quality_Sugs :
bool {
30 ALL_LOW_QUALITY_SUGS =
false,
31 HAS_HIGH_QUALITY_SUGS =
true
34 auto suggest_priv(std::string_view input_word, List_Strings& out)
const
37 auto suggest_low(std::string& word, List_Strings& out)
const
40 auto add_sug_if_correct(std::string& word, List_Strings& out)
const
43 auto uppercase_suggest(
const std::string& word, List_Strings& out)
const
46 auto rep_suggest(std::string& word, List_Strings& out)
const -> void;
48 auto try_rep_suggestion(std::string& word, List_Strings& out)
const
51 auto max_attempts_for_long_alogs(std::string_view word)
const -> size_t;
53 auto map_suggest(std::string& word, List_Strings& out)
const -> void;
55 auto map_suggest(std::string& word, List_Strings& out,
size_t i,
56 size_t& remaining_attempts)
const -> void;
58 auto adjacent_swap_suggest(std::string& word, List_Strings& out)
const
61 auto distant_swap_suggest(std::string& word, List_Strings& out)
const
64 auto keyboard_suggest(std::string& word, List_Strings& out)
const
67 auto extra_char_suggest(std::string& word, List_Strings& out)
const
70 auto forgotten_char_suggest(std::string& word, List_Strings& out)
const
73 auto move_char_suggest(std::string& word, List_Strings& out)
const
76 auto bad_char_suggest(std::string& word, List_Strings& out)
const
79 auto doubled_two_chars_suggest(std::string& word,
80 List_Strings& out)
const -> void;
82 auto two_words_suggest(
const std::string& word, List_Strings& out)
const
85 auto ngram_suggest(
const std::string& word_u8, List_Strings& out)
const
88 auto expand_root_word_for_ngram(Word_List::const_reference root,
89 std::string_view wrong,
90 List_Strings& expanded_list,
91 std::vector<bool>& cross_affix)
const
95NUSPELL_END_INLINE_NAMESPACE
Library main namespace.
Definition aff_data.cxx:33