public class LanguageToolNativeBridge extends BaseLanguageToolBridge
Constructor and Description |
---|
LanguageToolNativeBridge(Language sourceLang,
Language targetLang) |
Modifier and Type | Method and Description |
---|---|
void |
applyRuleFilters(java.util.Set<java.lang.String> disabledCategories,
java.util.Set<java.lang.String> disabledRules,
java.util.Set<java.lang.String> enabledRules)
Free resources before destruction
|
protected java.util.List<LanguageToolResult> |
getCheckResultsImpl(java.lang.String sourceText,
java.lang.String translationText) |
static org.languagetool.Language |
getLTLanguage(Language lang)
Get the closest LanguageTool language to the supplied OmegaT language, or null if none can be found.
|
void |
stop()
Handle project or application closing
|
getCheckResults
public void stop()
ILanguageToolBridge
public void applyRuleFilters(java.util.Set<java.lang.String> disabledCategories, java.util.Set<java.lang.String> disabledRules, java.util.Set<java.lang.String> enabledRules)
ILanguageToolBridge
disabledCategories
- Comma-separated list of disabled category IDsdisabledRules
- Comma-separated list of disabled rule IDsenabledRules
- Comma-separated list of enabled rule IDsprotected java.util.List<LanguageToolResult> getCheckResultsImpl(java.lang.String sourceText, java.lang.String translationText) throws java.lang.Exception
getCheckResultsImpl
in class BaseLanguageToolBridge
java.lang.Exception
public static org.languagetool.Language getLTLanguage(Language lang)
getLanguageForLanguageNameAndCountry
and getLanguageForLanguageNameOnly
in {@link Languages}.