aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-01-23 16:52:37 +0900
committersatok <satok@google.com>2012-01-25 22:30:37 +0900
commit8330b488e9534afe8f5775ad9416c904d01bb665 (patch)
treea15199bc0aecd0a46f2a9f2e2f0aa1a491ad18d4 /native/src/defines.h
parentf9521c6f378e3f2aa13d9e382ae13708e3ae6317 (diff)
downloadlatinime-8330b488e9534afe8f5775ad9416c904d01bb665.tar.gz
latinime-8330b488e9534afe8f5775ad9416c904d01bb665.tar.xz
latinime-8330b488e9534afe8f5775ad9416c904d01bb665.zip
Do other error correction for the second word of two word correction
result: I4e0b68a12190933f9 Change-Id: I98afce6fe4d5bde97392146d204370ba31a72566
Diffstat (limited to 'native/src/defines.h')
-rw-r--r--native/src/defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/defines.h b/native/src/defines.h
index 119a7d779..220309bda 100644
--- a/native/src/defines.h
+++ b/native/src/defines.h
@@ -188,6 +188,7 @@ static void prof_out(void) {
#define WORDS_WITH_MISSING_CHARACTER_DEMOTION_RATE 80
#define WORDS_WITH_MISSING_CHARACTER_DEMOTION_START_POS_10X 12
#define WORDS_WITH_MISSING_SPACE_CHARACTER_DEMOTION_RATE 58
+#define WORDS_WITH_MISTYPED_SPACE_DEMOTION_RATE 50
#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 70
@@ -221,6 +222,9 @@ static void prof_out(void) {
#define MAX_DEPTH_MULTIPLIER 3
+#define FIRST_WORD_INDEX 1
+#define SECOND_WORD_INDEX 2
+
// TODO: Reduce this constant if possible; check the maximum number of umlauts in the same German
// word in the dictionary
#define DEFAULT_MAX_UMLAUT_SEARCH_DEPTH 5