• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License
15  */
16 
17 package com.android.inputmethod.latin.define;
18 
19 /**
20  * Decoder specific constants for LatinIme.
21  */
22 public class DecoderSpecificConstants {
23 
24     // Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
25     public static final int DICTIONARY_MAX_WORD_LENGTH = 48;
26 
27     // (MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1)-gram is supported in Java side. Needs to modify
28     // MAX_PREV_WORD_COUNT_FOR_N_GRAM in native/jni/src/defines.h for suggestions.
29     public static final int MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3;
30 
31     public static final String DECODER_DICT_SUFFIX = "";
32 
33     public static final boolean SHOULD_VERIFY_MAGIC_NUMBER = true;
34     public static final boolean SHOULD_VERIFY_CHECKSUM = true;
35     public static final boolean SHOULD_USE_DICT_VERSION = true;
36     public static final boolean SHOULD_AUTO_CORRECT_USING_NON_WHITE_LISTED_SUGGESTION = false;
37     public static final boolean SHOULD_REMOVE_PREVIOUSLY_REJECTED_SUGGESTION = true;
38 }
39