aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/suggest/core/suggest.cpp
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-10-28 09:26:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-28 09:26:40 +0000
commitdabc12974c01992f9eb612658b4e860de52f2284 (patch)
tree8cc94d8fc9fc4562543a99a720ad24b01a2d9ce9 /native/jni/src/suggest/core/suggest.cpp
parentef541aa91de550972fb9fa98f5292ff84c1fcd83 (diff)
parent8a809f3433c3b96a3a9002a5bdc166f8c689eeb0 (diff)
downloadlatinime-dabc12974c01992f9eb612658b4e860de52f2284.tar.gz
latinime-dabc12974c01992f9eb612658b4e860de52f2284.tar.xz
latinime-dabc12974c01992f9eb612658b4e860de52f2284.zip
Merge "Improve space substitution error correction."
Diffstat (limited to 'native/jni/src/suggest/core/suggest.cpp')
-rw-r--r--native/jni/src/suggest/core/suggest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/native/jni/src/suggest/core/suggest.cpp b/native/jni/src/suggest/core/suggest.cpp
index c71526293..68a36454e 100644
--- a/native/jni/src/suggest/core/suggest.cpp
+++ b/native/jni/src/suggest/core/suggest.cpp
@@ -160,8 +160,7 @@ void Suggest::expandCurrentDicNodes(DicTraverseSession *traverseSession) const {
// TODO: Remove. Do not prune node here.
const bool allowsErrorCorrections = TRAVERSAL->allowsErrorCorrections(&dicNode);
// Process for handling space substitution (e.g., hevis => he is)
- if (allowsErrorCorrections
- && TRAVERSAL->isSpaceSubstitutionTerminal(traverseSession, &dicNode)) {
+ if (TRAVERSAL->isSpaceSubstitutionTerminal(traverseSession, &dicNode)) {
createNextWordDicNode(traverseSession, &dicNode, true /* spaceSubstitution */);
}