Package org.omegat.core.spellchecker
Interface ISpellCheckerDictionary
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
AbstractHunspellDictionary,AbstractMorfologikDictionary
-
Method Summary
Modifier and TypeMethodDescriptionGet a dictionary type.default org.apache.lucene.analysis.hunspell.DictionarygetHunspellDictionary(String language) Get Hunspell dictionary.default morfologik.stemming.DictionarygetMorfologikDictionary(String language) Get Morfologik dictionary.default @Nullable PathinstallHunspellDictionary(Path dictionaryDir, String language)
-
Method Details
-
getHunspellDictionary
@Nullable default org.apache.lucene.analysis.hunspell.Dictionary getHunspellDictionary(String language) Get Hunspell dictionary.- Returns:
- Dictionary object when the language module has. Otherwise, null.
-
getMorfologikDictionary
Get Morfologik dictionary.- Returns:
- Dictionary object when the language module has. Otherwise, null.
-
installHunspellDictionary
-
getDictionaryType
SpellCheckDictionaryType getDictionaryType()Get a dictionary type.- Returns:
- type of dictionary. If the module provides nothing, return null.
-