Package org.languagetool.rules
Class ConfusionSet
java.lang.Object
org.languagetool.rules.ConfusionSet
Words that can easily be confused - for internal use only.
Even though there can be more words in the set, usually there
are two, as the factor is specific for this pair of words.
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfusionSet
(long factor, String... words) ConfusionSet
(long factor, List<ConfusionString> confusionStrings) -
Method Summary
-
Field Details
-
set
-
factor
private final long factor
-
-
Constructor Details
-
ConfusionSet
- Parameters:
factor
- the factor that one string must be more probable than the other to be considered a correction, must be >= 1
-
ConfusionSet
- Parameters:
factor
- the factor that one string must be more probable than the other to be considered a correction, must be >= 1
-
-
Method Details