Class SimpleReplaceDataLoader

java.lang.Object
org.languagetool.rules.SimpleReplaceDataLoader

public final class SimpleReplaceDataLoader extends Object
Load replacement data from a UTF-8 file. One replacement per line, word and its replacement(s) separated by an equals sign. Both the word and the replacements can have more than one form if separated by pipe symbols.
Since:
3.0
  • Constructor Details

    • SimpleReplaceDataLoader

      public SimpleReplaceDataLoader()
  • Method Details

    • loadWords

      public Map<String,List<String>> loadWords(String path)
      Load replacement rules from a utf-8 file in the classpath.