blob: a7272e93a63d843c3d986f54515e708108625822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Copyright (c) 2011 Vlad Voicu
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.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;
};
}
|