Class TopoReplaceRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.br.TopoReplaceRule
public class TopoReplaceRule
extends org.languagetool.rules.Rule
A rule that matches place names in French which should be
translated in Breton.
Loads the list of words from
rules/br/topo.txt.
This class is mostly copied from ro/SimpleReplaceRules.java.- Author:
- Dominique Pellé
-
Field Summary
FieldsFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
Field Details
-
BRETON_TOPO
- See Also:
-
-
Constructor Details
-
TopoReplaceRule
-
-
Method Details
-
getId
- Specified by:
getIdin classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescriptionin classorg.languagetool.rules.Rule
-
getShort
-
getSuggestion
-
getSuggestionsSeparator
- Returns:
- the word used to separate multiple suggestions; used only before last suggestion, the rest are comma-separated.
-
isCaseSensitive
public boolean isCaseSensitive() -
getLocale
locale used on case-conversion -
getWrongWords
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) - Specified by:
matchin classorg.languagetool.rules.Rule
-