mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix exact match profanity
Bug: 8661070 Change-Id: I421bed14cc71af7715101423652d706e33958445
This commit is contained in:
parent
7b2114a428
commit
df2eae6e69
@ -164,8 +164,8 @@ int Suggest::outputSuggestions(DicTraverseSession *traverseSession, int *frequen
|
|||||||
const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0;
|
const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0;
|
||||||
const bool isExactMatch = terminalDicNode->isExactMatch();
|
const bool isExactMatch = terminalDicNode->isExactMatch();
|
||||||
const int outputTypeFlags =
|
const int outputTypeFlags =
|
||||||
isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0
|
(isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0)
|
||||||
| isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0;
|
| (isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0);
|
||||||
|
|
||||||
// Entries that are blacklisted or do not represent a word should not be output.
|
// Entries that are blacklisted or do not represent a word should not be output.
|
||||||
const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord();
|
const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user