fixed incorrect suggestion order in Chinese and Japanese sometimes
This commit is contained in:
parent
82cac3153e
commit
7ac10e6363
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ public class IdeogramPredictions extends WordPredictions {
|
||||||
super(settings, textField);
|
super(settings, textField);
|
||||||
minWords = 1;
|
minWords = 1;
|
||||||
onlyExactMatches = true;
|
onlyExactMatches = true;
|
||||||
|
|
||||||
|
// Prevent incorrect ordering of words that have the same sequence, but different character lengths.
|
||||||
|
// In East Asian languages, we almost always want exact matches, so anything that appears longer, is
|
||||||
|
// usually only spelled longer, not that it contains more sounds.
|
||||||
|
// For example, "KONO" = "この" and "九". "九" must not come before "この", because it is shorter.
|
||||||
|
orderWordsByLength = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue