Package org.languagetool.rules
Class SimpleReplaceDataLoader
- java.lang.Object
-
- org.languagetool.rules.SimpleReplaceDataLoader
-
public final class SimpleReplaceDataLoader extends java.lang.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 java.util.Map<java.lang.String,java.util.List<java.lang.String>>
loadWords(java.lang.String path)
Load replacement rules from a utf-8 file in the classpath.
-