Package org.languagetool.rules
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 Summary
Constructors Constructor Description SimpleReplaceDataLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>
loadWords(String path)
Load replacement rules from a utf-8 file in the classpath.
-