public class WordComparison
extends java.lang.Object
Constructor and Description |
---|
WordComparison(java.lang.String wordToCompare) |
Modifier and Type | Method and Description |
---|---|
void |
compare(java.lang.String anotherWord) |
void |
excludeFromComparison(java.lang.String word)
Adds a word to the list of words not to compare.
|
java.lang.String |
getMostSimilarWord() |
java.lang.String[] |
getMostSimilarWords(int maxAmount)
Returns the most similar words.
|
public void excludeFromComparison(java.lang.String word)
word
- a word to exclude from comparisonpublic void compare(java.lang.String anotherWord)
public java.lang.String getMostSimilarWord()
public java.lang.String[] getMostSimilarWords(int maxAmount)
maxAmount
- the maximum amount of similar words to returnCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de