1
0
Fork 0

fixed unexpected word suggestion when typing words with apostrophes in Ukrainian; fixed words combining with emojis, instead of suggesting words with apostrophes in Ukrainian

This commit is contained in:
sspanak 2024-08-02 15:51:49 +03:00 committed by Dimo Karaivanov
parent 8a014dafea
commit f330242757

View file

@ -221,7 +221,8 @@ public class Predictions {
} }
// generated "exact matches" // generated "exact matches"
for (String w : generateWordVariations(dbWords.get(0))) { String baseWord = inputWord.length() == digitSequence.length() - 1 ? inputWord : dbWords.get(0);
for (String w : generateWordVariations(baseWord)) {
if (!dbWords.contains(w) && !dbWords.contains(w.toLowerCase(language.getLocale()))) { if (!dbWords.contains(w) && !dbWords.contains(w.toLowerCase(language.getLocale()))) {
complementedWords.add(w); complementedWords.add(w);
} }