Something went wrong on our end
-
Jean Chalard authored
If not composing a word, then consideredWord is always the empty string. Hence, it's never whitelisted, but it's also always "NotAWord", so isWhitelistedOrNotAWord returns always true, so allowsToBeAutoCorrected is always true. Which means that isPrediction implies allowsToBeAutoCorrected == true. Thus, !isPrediction && !allowsToBeAutoCorrected is strictly equivalent to !allowsToBeAutocorrected. Change-Id: I4ad7a7c3447851c539646d97cf55ff065e6ee115
Jean Chalard authoredIf not composing a word, then consideredWord is always the empty string. Hence, it's never whitelisted, but it's also always "NotAWord", so isWhitelistedOrNotAWord returns always true, so allowsToBeAutoCorrected is always true. Which means that isPrediction implies allowsToBeAutoCorrected == true. Thus, !isPrediction && !allowsToBeAutoCorrected is strictly equivalent to !allowsToBeAutocorrected. Change-Id: I4ad7a7c3447851c539646d97cf55ff065e6ee115