Reduce weight of missing-char suggestions.
diff --git a/dictionary/src/dictionary.cpp b/dictionary/src/dictionary.cpp
index 8db5f12..cc711f4 100644
--- a/dictionary/src/dictionary.cpp
+++ b/dictionary/src/dictionary.cpp
@@ -230,8 +230,9 @@
if (terminal) {
if (//INCLUDE_TYPED_WORD_IF_VALID ||
!sameAsTyped(mWord, depth + 1)) {
- addWord(mWord, depth + 1,
- (freq * snr * addedWeight * mFullWordMultiplier));
+ int finalFreq = freq * snr * addedWeight;
+ if (mSkipPos < 0) finalFreq *= mFullWordMultiplier;
+ addWord(mWord, depth + 1, finalFreq);
}
}
if (childrenAddress != 0) {