/src/aspell/modules/speller/default/asuggest.hpp
Line | Count | Source |
1 | | // Copyright 2000 by Kevin Atkinson under the terms of the LGPL |
2 | | |
3 | | #ifndef _asuggest_hh_ |
4 | | #define _asuggest_hh_ |
5 | | |
6 | | #include "suggest.hpp" |
7 | | #include "editdist.hpp" |
8 | | #include "typo_editdist.hpp" |
9 | | #include "cache.hpp" |
10 | | |
11 | | namespace aspeller { |
12 | | class Speller; |
13 | | class SpellerImpl; |
14 | | class Suggest; |
15 | | |
16 | | struct SuggestParms { |
17 | | // implementation at the end of suggest.cc |
18 | | |
19 | | EditDistanceWeights edit_distance_weights; |
20 | | CachePtr<const TypoEditDistanceInfo> ti; |
21 | | |
22 | | bool try_one_edit_word, try_scan_0, try_scan_1, try_scan_2, try_ngram; |
23 | | |
24 | | int ngram_threshold, ngram_keep; |
25 | | |
26 | | bool check_after_one_edit_word; |
27 | | |
28 | | bool use_typo_analysis; |
29 | | bool use_repl_table; |
30 | | |
31 | | int soundslike_weight; |
32 | | int word_weight; |
33 | | |
34 | | int skip; |
35 | | int span; |
36 | | int limit; |
37 | | |
38 | | String split_chars; |
39 | | bool camel_case; |
40 | | |
41 | 2.01k | SuggestParms() {} |
42 | | |
43 | | PosibErr<void> init(ParmString mode, SpellerImpl * sp); |
44 | | PosibErr<void> init(ParmString mode, SpellerImpl * sp, Config *); |
45 | | }; |
46 | | |
47 | | Suggest * new_default_suggest(const Speller *, const SuggestParms &); |
48 | | } |
49 | | |
50 | | #endif |