summaryrefslogtreecommitdiffstats
blob: 835cda9121b4bcaa2423ec7b52d527b8426cc31c (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
/*
 * 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
	return new HunspellChecker(affixPath, dictPath);
#endif
	return NULL;
}

}