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:
parent
8a014dafea
commit
f330242757
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue