Package | Description |
---|---|
org.languagetool.commandline | |
org.languagetool.rules.bitext | |
org.languagetool.rules.patterns.bitext | |
org.languagetool.tools |
Modifier and Type | Method and Description |
---|---|
static int |
CommandLineTools.checkBitext(BitextReader reader,
JLanguageTool srcLt,
JLanguageTool trgLt,
List<BitextRule> bRules)
Checks the bilingual input (bitext) and displays the output (considering the target
language) in API format or in the simple text format.
|
static void |
CommandLineTools.correctBitext(BitextReader reader,
JLanguageTool sourceLt,
JLanguageTool targetLt,
List<BitextRule> bRules)
Automatically applies suggestions to the bilingual text.
|
Modifier and Type | Class and Description |
---|---|
class |
DifferentLengthRule
Checks if the translation has a really different length than the source
(smaller than 30% or longer by 250%).
|
class |
DifferentPunctuationRule
Checks if the translation has the same ending punctuation as the source.
|
class |
SameTranslationRule
Checks if the translation for segments that have more than two words
is different.
|
Modifier and Type | Method and Description |
---|---|
static List<Class<? extends BitextRule>> |
BitextRule.getRelevantRules() |
Modifier and Type | Class and Description |
---|---|
class |
BitextPatternRule
A bitext pattern rule class.
|
Modifier and Type | Method and Description |
---|---|
static List<BitextRule> |
Tools.getBitextRules(Language source,
Language target)
Gets default bitext rules for a given pair of languages
|
static List<BitextRule> |
Tools.getBitextRules(Language source,
Language target,
File externalBitextRuleFile)
Gets default bitext rules for a given pair of languages
|
static List<BitextRule> |
Tools.selectBitextRules(List<BitextRule> bRules,
List<String> disabledRules,
List<String> enabledRules,
boolean useEnabledOnly)
Enable and disable bitext rules.
|
Modifier and Type | Method and Description |
---|---|
static List<RuleMatch> |
Tools.checkBitext(String src,
String trg,
JLanguageTool srcLt,
JLanguageTool trgLt,
List<BitextRule> bRules)
Checks the bilingual input (bitext).
|
static List<BitextRule> |
Tools.selectBitextRules(List<BitextRule> bRules,
List<String> disabledRules,
List<String> enabledRules,
boolean useEnabledOnly)
Enable and disable bitext rules.
|