Package org.languagetool.rules.bitext
Class DifferentPunctuationRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.bitext.BitextRule
org.languagetool.rules.bitext.DifferentPunctuationRule
Checks if the translation has the same ending punctuation as the source.
- Since:
- 2.9
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA short description of the error this rule can detect, usually in the language of the text that is checked.getId()A string used to identify the rule in e.g.match(AnalyzedSentence sourceText, AnalyzedSentence targetText) Methods inherited from class org.languagetool.rules.bitext.BitextRule
getCorrectBitextExamples, getIncorrectBitextExamples, getRelevantRules, getSourceLanguage, match, setCorrectBitextExamples, setIncorrectBitextExamples, setSourceLanguageMethods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Constructor Details
-
DifferentPunctuationRule
public DifferentPunctuationRule()
-
-
Method Details
-
getDescription
Description copied from class:RuleA short description of the error this rule can detect, usually in the language of the text that is checked.- Specified by:
getDescriptionin classRule
-
getId
Description copied from class:RuleA string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the charactersA-Zand the underscore. -
getMessage
- Specified by:
getMessagein classBitextRule
-
match
public RuleMatch[] match(AnalyzedSentence sourceText, AnalyzedSentence targetText) throws IOException - Specified by:
matchin classBitextRule- Throws:
IOException
-