diff options
Diffstat (limited to 'SwifTools/SpellChecker.h')
-rw-r--r-- | SwifTools/SpellChecker.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/SwifTools/SpellChecker.h b/SwifTools/SpellChecker.h new file mode 100644 index 0000000..3a9ff38 --- /dev/null +++ b/SwifTools/SpellChecker.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2011 Voicu Vlad + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include <vector> +#include <boost/algorithm/string.hpp> + +#pragma once + +class AspellSpeller; +class AspellConfig; + +namespace Swift { + class SpellChecker { + public: + SpellChecker(); + bool isCorrect(const std::string& word); + void getSuggestions(const std::string& word, std::vector<std::string>& list); + private: + AspellSpeller* speller_; + AspellConfig* config_; + }; +} |