public class SpellingCorrectorParameters extends Object
Represents parameters related to spelling corrector.
Modifier and Type | Method and Description |
---|---|
boolean |
getConsiderTranspositions()
Gets or sets a value indicating that the algorithm must
consider transposition of two adjacent characters as a single mistake.
|
boolean |
getEnabled()
Gets or sets a value indicating whether spelling corrector is enabled.
|
int |
getMaxMistakeCount_Rename_Namesake()
Gets or sets maximum mistake count.
|
boolean |
getOnlyBestResults()
Gets or sets a value indicating that only the best results will be returned.
|
byte |
getOnlyBestResultsRange()
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
|
void |
setConsiderTranspositions(boolean value)
Gets or sets a value indicating that the algorithm must
consider transposition of two adjacent characters as a single mistake.
|
void |
setEnabled(boolean value)
Gets or sets a value indicating whether spelling corrector is enabled.
|
void |
setMaxMistakeCount(int value)
Gets or sets maximum mistake count.
|
void |
setOnlyBestResults(boolean value)
Gets or sets a value indicating that only the best results will be returned.
|
void |
setOnlyBestResultsRange(byte value)
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
|
public final boolean getEnabled()
Gets or sets a value indicating whether spelling corrector is enabled.
Value: Spelling corrector is enabled.public final void setEnabled(boolean value)
Gets or sets a value indicating whether spelling corrector is enabled.
Value: Spelling corrector is enabled.public final int getMaxMistakeCount_Rename_Namesake()
Gets or sets maximum mistake count.
Value: Maximum mistake count.public final void setMaxMistakeCount(int value)
Gets or sets maximum mistake count.
Value: Maximum mistake count.public final boolean getOnlyBestResults()
Gets or sets a value indicating that only the best results will be returned.
Value:true
if only the best results will be returned;
otherwise false
.public final void setOnlyBestResults(boolean value)
Gets or sets a value indicating that only the best results will be returned.
Value:true
if only the best results will be returned;
otherwise false
.public final byte getOnlyBestResultsRange()
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
Value: The maximum exceeding of the minimum number of mistakes found.public final void setOnlyBestResultsRange(byte value)
Gets or sets the maximum exceeding of the minimum number of mistakes that are found.
Value: The maximum exceeding of the minimum number of mistakes found.public final boolean getConsiderTranspositions()
Gets or sets a value indicating that the algorithm must consider transposition of two adjacent characters as a single mistake.
Value:true
if algorithm considers transpositions;
otherwise false
.public final void setConsiderTranspositions(boolean value)
Gets or sets a value indicating that the algorithm must consider transposition of two adjacent characters as a single mistake.
Value:true
if algorithm considers transpositions;
otherwise false
.Copyright © 2018. All rights reserved.