summaryrefslogtreecommitdiffstats
blob: 9ac33cdd9cc2af3ccfa9b30d70328e0c9e7b3c78 (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
26
27
28
/*
 * Copyright (c) 2011 Vlad Voicu
 * Licensed under the Simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#include <SwifTools/SpellChecker.h>
#include <SwifTools/HunspellChecker.h>
#include <SwifTools/SpellCheckerFactory.h>

#ifdef HAVE_HUNSPELL
#include <hunspell/hunspell.hxx>
#endif

namespace Swift {

SpellCheckerFactory::SpellCheckerFactory() {
}

SpellChecker* SpellCheckerFactory::createSpellChecker(const char* affixPath, const char* dictPath) {
#ifdef HAVE_HUNSPELL
	std::cout << affixPath << std::endl << dictPath << std::endl;
	return new HunspellChecker(affixPath, dictPath);
#endif
	return NULL;
}

}