Skip to content

Feature : Opitimize WordLookupLayout thru searchWithTiers#78

Open
JYinherit wants to merge 7 commits intoOctagonalStar:mainfrom
JYinherit:main
Open

Feature : Opitimize WordLookupLayout thru searchWithTiers#78
JYinherit wants to merge 7 commits intoOctagonalStar:mainfrom
JYinherit:main

Conversation

@JYinherit
Copy link
Copy Markdown
Contributor

lib/funcs/utili.dart 中原本用于题目混淆项筛选的 searchWithTiers(词根、词距检索分级)功能内嵌进了 WordLookupLayout 对应的词汇页面检索里

为了更好地展示检索到的不同相似级别的词汇,我调整了内部的布局:将原本简单的 GridView 重构为了 CustomScrollView + SliverGrid

现在当你在词汇总览里输入阿拉伯语单词进行搜索时,结果将会如下进行分类并分块显示:

完全匹配/包含:本身单词或包含该内容的延伸单词
极高相似 (同根同词性):词根相同且词性相同(派生联系紧密)
较高相似 (近根同词性):形似词
中等相似 (同根异性):同词根的其他派生词
近似词汇 (近根干扰项):可能的视觉、拼写易混淆词

如果你搜索的是中文,页面仍会像以前一样使用改进过的中文 Levenshtein 匹配返回排序结果,但加上了一个统一的「中文检索结果」标题来保持界面一致性

JYinherit and others added 5 commits April 18, 2026 15:44
Signed-off-by: JYinherit <jyinherit@qq.com>
Signed-off-by: JYinherit <jyinherit@qq.com>
Signed-off-by: JYinherit <jyinherit@qq.com>
Signed-off-by: JYinherit <jyinherit@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant