public interface IWordChecker
单词拼写检查-接口
Created: 2018/4/28 上午6:41
Project: word-checker
| 限定符和类型 | 方法和说明 |
|---|---|
String |
correct(String word,
IWordCheckerContext context)
最佳纠正结果
1.
|
List<String> |
correctList(String word,
int limit,
IWordCheckerContext context)
最佳纠正列表
1. list 的大小永远不会大于 limit,大小返回应该是 [0, limit]
|
List<String> |
correctList(String word,
IWordCheckerContext context)
所有匹配纠正列表
|
boolean |
isCorrect(String word,
IWordCheckerContext context)
是否拼写正确
|
boolean isCorrect(String word, IWordCheckerContext context)
word - 原始内容context - 上下文true 正确拼写, false 错误拼写String correct(String word, IWordCheckerContext context)
word - 原始内容context - 上下文List<String> correctList(String word, int limit, IWordCheckerContext context)
word - 单词limit - 限制,用于指定返回列表的大小context - 上下文List<String> correctList(String word, IWordCheckerContext context)
word - 单词context - 上下文Copyright © 2024. All rights reserved.