diff options
author | Vlad Voicu <vladvoic@gmail.com> | 2011-11-29 01:15:18 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-03-09 15:03:59 (GMT) |
commit | 404b087a11144c66416513929eb57c9786f41ffe (patch) | |
tree | 7b63584289498f01a2beb9337d5a2ffeb71081b3 /SwifTools/SpellChecker.h | |
parent | b8f10af29258705b4610e99ba69f5ecab42ef6ae (diff) | |
download | swift-contrib-404b087a11144c66416513929eb57c9786f41ffe.zip swift-contrib-404b087a11144c66416513929eb57c9786f41ffe.tar.bz2 |
Modified the Spellchecker to use hunspell instead of aspell
Diffstat (limited to 'SwifTools/SpellChecker.h')
-rw-r--r-- | SwifTools/SpellChecker.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/SwifTools/SpellChecker.h b/SwifTools/SpellChecker.h index 3a9ff38..1c3148b 100644 --- a/SwifTools/SpellChecker.h +++ b/SwifTools/SpellChecker.h @@ -9,17 +9,16 @@ #pragma once -class AspellSpeller; -class AspellConfig; +class Hunspell; namespace Swift { class SpellChecker { public: SpellChecker(); + ~SpellChecker(); bool isCorrect(const std::string& word); void getSuggestions(const std::string& word, std::vector<std::string>& list); private: - AspellSpeller* speller_; - AspellConfig* config_; + Hunspell* speller_; }; } |