aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-01-27 03:23:39 +0900
committersatok <satok@google.com>2011-01-27 12:53:13 +0900
commit58c49b91322847dc453742cb34c2899da9b44479 (patch)
tree645f163d8a75a9e422946eb908c50c6efcecd8fa /native/src/defines.h
parent5c35e4109fc5a035605605b62bf5e5a5888b0f6b (diff)
downloadlatinime-58c49b91322847dc453742cb34c2899da9b44479.tar.gz
latinime-58c49b91322847dc453742cb34c2899da9b44479.tar.xz
latinime-58c49b91322847dc453742cb34c2899da9b44479.zip
Fix auto-correction threshold and promote full matched words
Bug: 3374359 Bug: 3278422 "zbe" will be auto corrected to "be" by fixing s-line "teh" will be auto corrected to "the" by promotion of full matched words Change-Id: I314c632820e4e0b1501edeca60ada205d291451f
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index 71aaf28ae..7374526ca 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -134,6 +134,7 @@ static void prof_out(void) {
#define WORDS_WITH_EXCESSIVE_CHARACTER_DEMOTION_RATE 75
#define WORDS_WITH_EXCESSIVE_CHARACTER_OUT_OF_PROXIMITY_DEMOTION_RATE 75
#define WORDS_WITH_TRANSPOSED_CHARACTERS_DEMOTION_RATE 60
+#define FULL_MATCHED_WORDS_PROMOTION_RATE 120
// This should be greater than or equal to MAX_WORD_LENGTH defined in BinaryDictionary.java
// This is only used for the size of array. Not to be used in c functions.