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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final String
     
    locale used on case-conversion
     
     
     
     
    boolean
     
    org.languagetool.rules.RuleMatch[]
    match(org.languagetool.AnalyzedSentence sentence)
     

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getId

      public final String getId()
      Specified by:
      getId in class org.languagetool.rules.Rule
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.languagetool.rules.Rule
    • getShort

      public String getShort()
    • getSuggestion

      public String getSuggestion()
    • getSuggestionsSeparator

      public String getSuggestionsSeparator()
      Returns:
      the word used to separate multiple suggestions; used only before last suggestion, the rest are comma-separated.
    • isCaseSensitive

      public boolean isCaseSensitive()
    • getLocale

      public Locale getLocale()
      locale used on case-conversion
    • getWrongWords

      public List<Map<String,String>> getWrongWords()
      Returns:
      the list of wrong words for which this rule can suggest correction. The list cannot be modified.
    • match

      public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence)
      Specified by:
      match in class org.languagetool.rules.Rule