/* * Copyright (c) 2011 Vlad Voicu * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include #ifdef HAVE_HUNSPELL #include #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; } }