public final class WordCheckerHelper extends Object
project: word-checker-EnWordCheckers
create on 2020/2/6 9:37
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
correct(String word)
最佳纠正结果
|
static List<String> |
correctList(String word)
全部个数纠正列表结果
|
static List<String> |
correctList(String word,
int limit)
指定个数纠正列表结果
|
static Map<String,List<String>> |
correctMap(String word)
全部个数纠正列表结果
|
static Map<String,List<String>> |
correctMap(String word,
int limit)
指定个数纠正列表结果
|
static boolean |
isCorrect(String word)
单词拼写是否正确
|
public static boolean isCorrect(String word)
word - 单词public static Map<String,List<String>> correctMap(String word, int limit)
word - 单词limit - 限制个数public static Map<String,List<String>> correctMap(String word)
word - 单词public static List<String> correctList(String word, int limit)
word - 单词limit - 限制个数Copyright © 2024. All rights reserved.