Class CompoundRuleData

java.lang.Object
org.languagetool.rules.CompoundRuleData

public class CompoundRuleData extends Object
Data about words that are compounds and should thus not be written as separate words.
Since:
3.0
  • Field Details

    • incorrectCompounds

      private final Set<String> incorrectCompounds
    • noDashSuggestion

      private final Set<String> noDashSuggestion
    • noDashLowerCaseSuggestion

      private final Set<String> noDashLowerCaseSuggestion
    • onlyDashSuggestion

      private final Set<String> onlyDashSuggestion
  • Constructor Details

    • CompoundRuleData

      public CompoundRuleData(String path)
    • CompoundRuleData

      public CompoundRuleData(String... paths)
  • Method Details

    • getIncorrectCompounds

      Set<String> getIncorrectCompounds()
    • getNoDashSuggestion

      Set<String> getNoDashSuggestion()
    • getOnlyDashSuggestion

      Set<String> getOnlyDashSuggestion()
    • getNoDashLowerCaseSuggestion

      Set<String> getNoDashLowerCaseSuggestion()
    • loadCompoundFile

      private void loadCompoundFile(String path) throws IOException
      Throws:
      IOException
    • validateLine

      private void validateLine(String path, String line)
    • removeLastCharacter

      private String removeLastCharacter(String str)