blob: 64a7c958139302781d017c1dfaeb9817d588499a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Copyright (c) 2011 Voicu Vlad
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <boost/algorithm/string.hpp>
#include <vector>
#pragma once
namespace Swift {
class SpellChecker {
public:
virtual ~SpellChecker() { };
virtual bool isCorrect(const std::string& word) = 0;
virtual void getSuggestions(const std::string& word, std::vector<std::string>& list) = 0;
};
}
|