public abstract class SpellingCorrectorOptions extends Object
Learn more
| Constructor and Description |
|---|
SpellingCorrectorOptions() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
getConsiderTranspositions()
Gets a value indicating whether the algorithm must
consider transposition of two adjacent characters as a single mistake.
|
abstract boolean |
getEnabled()
Gets a value indicating whether the spelling corrector is enabled.
|
abstract int |
getMaxMistakeCount()
Gets the maximum number of mistakes.
|
abstract boolean |
getOnlyBestResults()
Gets a value indicating whether only the best results will be returned.
|
abstract byte |
getOnlyBestResultsRange()
Gets the maximum exceeding of the minimum number of mistakes that are found.
|
abstract void |
setConsiderTranspositions(boolean value)
Sets a value indicating whether the algorithm must
consider transposition of two adjacent characters as a single mistake.
|
abstract void |
setEnabled(boolean value)
Sets a value indicating whether the spelling corrector is enabled.
|
abstract void |
setMaxMistakeCount(int value)
Sets the maximum number of mistakes.
|
abstract void |
setOnlyBestResults(boolean value)
Sets a value indicating whether only the best results will be returned.
|
abstract void |
setOnlyBestResultsRange(byte value)
Sets the maximum exceeding of the minimum number of mistakes that are found.
|
public abstract boolean getConsiderTranspositions()
true.true if the spelling corrector algorithm considers transpositions; otherwise false.public abstract boolean getEnabled()
false.public abstract int getMaxMistakeCount()
2.public abstract boolean getOnlyBestResults()
false.true if only the best results will be returned; otherwise false.public abstract byte getOnlyBestResultsRange()
0.public abstract void setConsiderTranspositions(boolean value)
true.value - true if the spelling corrector algorithm considers transpositions; otherwise false.public abstract void setEnabled(boolean value)
false.value - A value indicating whether the spelling corrector is enabled.public abstract void setMaxMistakeCount(int value)
2.value - The maximum number of mistakes.public abstract void setOnlyBestResults(boolean value)
false.value - true if only the best results will be returned; otherwise false.public abstract void setOnlyBestResultsRange(byte value)
0.value - The maximum exceeding of the minimum number of mistakes found.Copyright © 2026. All rights reserved.