Repository navigation
feat: 中文模式下安全学习未收录的英文专有名词,显式大写时原样排前(#297) - #300
Merged
Gloridust merged 1 commit intoNov 22, 2026
Merged
Conversation
- 中文模式下从候选框选的未收录英文原串(Verah)按选词热力学:选够 3 次收进用户英文词表, 存在 history.tsv 的 e 行;以后打 verah 还原成 Verah 并排第一,Ctrl+Delete 忘掉, 上屏后紧接着退格能撤销。 - 回车、标点上屏的原始字母串照旧不学:终端里没有密码框标记时,密码不会进 history.tsv。 - 输入带显式大写、中文只能靠纠错或未登录单字凑出来时(Verah -> ve'ra'h -> 个大和), 原始串直接排第一,不再被硬拼的中文挤到后面。
This was referenced Nov 22, 2026
Owner
|
合进 用真实词库对比过大写输入的首选:完整拼音(Nihao、Beijing、Zhongguo…)不变;带大写又要靠纠错才凑得出中文的(Nihoa、Beijng)现在原样排第一,符合这条规则的本意。排序评测各组和基线持平。 跟进了一处: macOS 那次 CI 失败是上传产物超时,重跑过了,和改动无关。 |
lanshi17
pushed a commit
to lanshi17/WowType
that referenced
this pull request
Nov 23, 2026
Engine::can_forget 没看用户英文词表:Ctrl+Delete 忘得掉,右键菜单却不给这一项。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
中文模式下混打英文词时,
english.txt里有的词(WeChat)全小写也能还原大小写并排第一;但未收录的人名/专有名词(Verah)即使显式打大写,也会被按ve'ra'h纠错拼成「个大和」挤到前面,反复选也不会记住(#297)。改动
1. 安全学习英文原串(守住密码底线)
history.tsv)。history.tsv的e行;选够auto_learn_threshold(默认 3)次收进用户英文词表。verah还原成Verah并排第一(和WeChat一样);Ctrl+Delete忘掉,上屏后紧接着退格能撤销。last_used_ms取新,learned跟随较新的一版。2. 显式大写排序
输入含大写、而中文只能靠混简拼 / 纠错 / 未登录单字凑出来时,原始串直接排第一。完整拼音词不受影响(
Nihao仍首选「你好」)。测试
全部通过:363 个单测 + 集成测试。新增用例覆盖阈值、大小写还原与首选、
history.tsv往返、跨进程合并、回车上屏不学、退格撤销、Ctrl+Delete真按键路径、保存重载后仍认得Verah。(本机缺
libasound2-dev,默认voicefeature 编译不了,检查用--no-default-features;未改语音代码。)Closes #297