aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/defines.h
diff options
context:
space:
mode:
authorKeisuke Kuroynagi <ksk@google.com>2013-04-25 09:55:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-25 09:55:58 +0000
commit3261746ff99dbf37d556b9c0e82192068437f99c (patch)
tree8257cc913a8bad910491d98435fc6efb8b0141af /native/jni/src/defines.h
parent43590149a5c2073a9fc8e3ed6afbf21fb017193e (diff)
parent60a169f0c34bf0da89c420d99bfff5c2556f3fbf (diff)
downloadlatinime-3261746ff99dbf37d556b9c0e82192068437f99c.tar.gz
latinime-3261746ff99dbf37d556b9c0e82192068437f99c.tar.xz
latinime-3261746ff99dbf37d556b9c0e82192068437f99c.zip
Merge "Fix exact match checking for words with digraph."
Diffstat (limited to 'native/jni/src/defines.h')
-rw-r--r--native/jni/src/defines.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index e6719c9c3..d3b351f81 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -438,4 +438,24 @@ typedef enum {
// Create new word with space substitution
CT_NEW_WORD_SPACE_SUBSTITUTION,
} CorrectionType;
+
+// ErrorType is mainly decided by CorrectionType but it is also depending on if
+// the correction has really been performed or not.
+typedef enum {
+ // Substitution, omission and transposition
+ ET_EDIT_CORRECTION,
+ // Proximity error
+ ET_PROXIMITY_CORRECTION,
+ // Completion
+ ET_COMPLETION,
+ // New word
+ // TODO: Remove.
+ // A new word error should be an edit correction error or a proximity correction error.
+ ET_NEW_WORD,
+ // Treat error as an intentional omission when the CorrectionType is omission and the node can
+ // be intentional omission.
+ ET_INTENTIONAL_OMISSION,
+ // Not treated as an error. Tracked for checking exact match
+ ET_NOT_AN_ERROR
+} ErrorType;
#endif // LATINIME_DEFINES_H