* commit '4c7474d501f672986770085193aded27d64aaaa4': Revert "Fix exact match profanity"
This commit is contained in:
commit
6c97d676eb
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue