summaryrefslogtreecommitdiffstats
blob: 3a9ff3810e6587f2077830434aac8d67f8b54187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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_;
	};
}