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
    • joinedSuggestion

      private final Set<String> joinedSuggestion
    • joinedLowerCaseSuggestion

      private final Set<String> joinedLowerCaseSuggestion
    • dashSuggestion

      private final Set<String> dashSuggestion
    • expander

      private final LineExpander expander
  • Constructor Details

    • CompoundRuleData

      public CompoundRuleData(String path)
    • CompoundRuleData

      public CompoundRuleData(String... paths)
    • CompoundRuleData

      public CompoundRuleData(LineExpander expander, String... paths)
  • Method Details

    • getIncorrectCompounds

      public Set<String> getIncorrectCompounds()
    • getJoinedSuggestion

      public Set<String> getJoinedSuggestion()
    • getDashSuggestion

      public Set<String> getDashSuggestion()
    • getJoinedLowerCaseSuggestion

      public Set<String> getJoinedLowerCaseSuggestion()
    • loadCompoundFile

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

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

      private String removeLastCharacter(String str)