DSH-English-learning
Manifest validRotating word and phrase flashcards under the composer, plus a right-sidebar page with an English topic brief, topic-matched vocabulary and a word book.
English Lounge · 英语角
A DeepSeek Harness (DSH) client plugin that turns idle moments into an English micro-environment: rotating word & phrase flashcards under the composer while a response streams in, and an English topic brief with an annotated word book in the right sidebar.
一款 DeepSeek Harness(DSH)客户端插件:在模型回复生成的等待时间里,于输入框下方轮播单词与短语闪卡;右侧栏展示当前会话主题的英文简报、主题词汇与生词本。
What's new in 1.5.0 · 本版新增
- Words this turn · 回复尾部词条条: after each model reply, a light strip below the turn surfaces 3–10 words — direct hits from the exchange first, then weighted random picks from the session topic pool. Tap a chip to expand the full card — IPA, gloss, bilingual example and the four state buttons; × folds the strip for that turn. 每轮回复下方浮出 3–10 个词条:优先本轮真实出现的英文词,不足时按会话种子从主题池随机加权补齐;点开即见音标/释义/双语例句与四态按钮;× 可收起本轮。
- AI topic words · AI 上下文选词: when a turn ends, the plugin can automatically ask the model for 5–8 words that best match the conversation (settings toggle, on by default; uses a few tokens). They arrive as an ```elpack pack, merge into the pools and carry a ·AI mark in the strip. 回合结束后自动请 AI 挑选贴合对话的词条(设置可关;少量 token 消耗);词条以词包形式自动收录,在词条条中带 ·AI 标记。
- Smarter matching · 匹配升级: conversation text is now read recent-first (tail 3,800 chars); topic detection switched to scoring (title ×2 + recent text ×1, keeps the strongest 1–2 topics); a new direct-hit channel pins bank words/phrases that literally occur in the conversation — phrases like walk me through finally get activated by real dialogue. 对话文本改为最近优先(取尾部 3,800 字符);主题识别改计分制(标题×2+近期文本×1,只留最强 1–2 个主题);新增直接命中通道——对话里真实出现的词库词/短语直接置顶,词组短语从此能被对话真正激活。
- Quiz · 小测试: a third sidebar view next to topic words and the word book. Spell-it (see the Chinese gloss, type the English) and multiple-choice questions drawn 80% from your word book and 20% from topic words, with a three-step hint ladder — IPA → letter skeleton (
g□□□ u□, the phrase disambiguator) → blanked example; near-misses (edit distance 1) get one free retry; the summary page lists missed words with one-tap "add all to the word book". Optional setting: auto-promote words you answer correctly. 右栏第三个视图(与主题词汇/生词本并列):拼写+四选一,抽词 80% 生词本 + 20% 主题词;三级提示——音标 → 字母骨架(词组消歧关键)→ 例句挖空;只差一个字母判「接近」并免费重试一次;结算页一键把错词全部加入生词本;可选「答对自动升级」。 - Topic tagging · 词库主题标注: a new multi-label layer (TOPIC_TAGS) gives 704 formerly
core-only entries real topic tags — daily, health, legal, education and industry benefit most, so topic matching now has real depth in everyday conversations. 新增多标签层 TOPIC_TAGS:704 个原先只有 core 标签的词补上主题标签(生活/健康/法律/教育/工业受益最大),日常对话的主题匹配覆盖面显著提升。
Features · 功能
- Composer flashcards · 输入框下方闪卡条
- Auto-rotating cards: word, IPA, part of speech, Chinese gloss, bilingual example. 自动轮换:词条、音标、词性、中文释义、双语例句。
- While the model is generating (
session.running), rotation speeds up and a mute pulse dot appears (the hint text is gone to save space); hovering pauses it. 回复生成期间加速轮换,只保留无文字的呼吸点(提示文案已移除,为词条腾出空间),悬停暂停。 - Compact state buttons on the strip: √ mastered / ○ got-it / ≈ fuzzy / ? mark-as-new — every tap saves the state and immediately advances to the next word; fuzzy and new words flow into the word book automatically (known/mastered flow out). » open sidebar stays at the right. 词条右侧为四枚状态按钮:√ 熟悉 / ○ 认识 / ≈ 模糊 / ? 生词——点任意一枚都会记住状态并立刻换下一个词;模糊与生词自动收进生词本,认识/熟悉自动移出生词本。» 打开右侧栏保留在最右。
- Right-sidebar page · 右侧栏「英语角」页
- Topic brief: reads the session title and recent conversation text, detects one of 14 topics (code / frontend / git / AI / design / planning / business / finance / industry / legal / health / travel / learning / daily), and composes a short English brief with topic chips. 主题简报:读取会话标题与最近对话内容,识别 14 个主题(编程/前端/Git/AI/设计/规划/商务/金融/工业/法务/健康/旅行/学习/日常)并生成英文概述与标签。
- Topic vocabulary matched to the detected topic — the composer dock strip and the sidebar word list both switch to topic words (generic words fill in when no topic is detected). 按主题匹配的注释词卡——输入框下方闪卡条与侧栏词表都切换为主题词;未识别到主题时回退通用词。
- Topic packs · 主题词包(v1.5.0 增补复活): the pack pipeline —
elpack parsing and local caching (up to 12 packs per session) — is back, now driven by the AI topic-words flow; the manual prompt-generation buttons stay hidden (`PACK_MANUAL_ENABLED`). 词包链路随 AI 上下文选词回归:elpack 围栏自动收录、每会话最多 12 包;手动提示词生成按钮继续隐藏(PACK_MANUAL_ENABLED)。 - In-bank lookup · 全库查词: a search box on the Topic page queries the entire bank by word or meaning, in Chinese or English, and renders hits as state cards, ranked by relevance: exact headword > prefix > substring, the same ladder for gloss matches, single words before phrases, common words before rare ones. 主题页新增查词框:中英文、按词或释义检索整个词库,结果按相关度排序——词条完全匹配 > 前缀 > 包含,释义同理;单词优先于短语,常用词优先于生僻词。
- Word book (生词本): segmented view with a live count; it is simply every word marked ? new or ≈ fuzzy — no manual saving. A search box filters the book by word or meaning (Chinese/English) and long books paginate at 20 per page. 生词本分段视图带数量角标——内容就是所有标为「? 生词」或「≈ 模糊」的词,无需手动收藏;支持按词或释义(中英文)即时检索,超过 20 条自动分页。
- Word states (熟悉 / 认识 / 模糊 / 生词): sidebar cards and the dock strip share the same four chips in the same order — √ Mastered / ○ Known / ≈ Fuzzy / ? New. Known words rotate at low frequency, fuzzy words come back more often, and mastered words vanish instantly: they leave the sidebar lists on the spot and are excluded from every pool (dock strip, topic words, packs). Fuzzy and new words enter the word book automatically. 侧栏词卡与闪卡条使用同一套顺序的四枚状态章——√ 熟悉 / ○ 认识 / ≈ 模糊 / ? 生词:认识的词低频轮换、模糊词高频巩固、熟悉的词立即隐藏(侧栏词表即刻消失,且从闪卡条、主题词汇、词包所有词池剔除);模糊与生词自动收进生词本。徽章 √ / ○ / ≈ 显示状态并计入 x/y 计数。
- Settings · 设置页: right-sidebar Settings tab — English level (starter A2 → pro C1), a smooth words-per-batch slider (5–20), and dock card pace with explicit seconds (e.g. fast = 6–14 s: short while generating, long while idle). Open it with the small ⚙ icon beside the segmented tabs; ▾ Hide word strip collapses the dock bar (tap the + capsule above the composer to bring it back). Clearing learning records requires a second tap — the button turns red and auto-reverts in 4 s. Pushed words are filtered by the difficulty ceiling and drawn with priority from the band matching the chosen level; topic relevance stays automatic. 右侧栏「设置」分段:英语水平(入门 A2 → 老手 C1)、每批词汇量平滑滑杆(5–20)、换词节奏(带具体秒数,如快 = 6–14 秒:生成中用短间隔、空闲用长间隔)。点分段右侧的小 ⚙ 图标进入;「收起单词条」可收起输入框下方的卡片条(点输入框上方 + 胶囊恢复)。清空学习记录需二次确认——按钮变红,4 秒未点击自动复位。推送按难度上限过滤,并优先从所选水平对应的难度区间抽词;主题相关性自动检测,无需手动配置。
- Built-in bank · 内置词库: 7,999 entries rated 1–5: developer phrases from real scenarios (requirements, architecture, code review, incidents, retrospectives, meetings), Oxford 3000/5000 words curated by CEFR (A1–C1), industry packs for power trading and industrial IoT, a broad bilingual workplace layer (business, finance, legal, procurement, travel, daily) curated from the open TOEIC vocabulary dataset moomoosir/toeic-vocab-tw (Hugging Face, CC-BY-SA-4.0), converted to simplified Chinese and re-graded, plus exam-core vocabulary merged from the open dict dataset kajweb/dict (CET-4/CET-6/KaoYan/IELTS books, graded 2/3/3/4, tagged
core, with IPA and bilingual examples) — powering in-bank lookup and much wider topic/pack coverage. 7,999 条词条,难度 1–5:真实开发场景短语、按 CEFR(A1–C1)精选的 Oxford 3000/5000 单词、电力交易/工业物联行业包、从开放 TOEIC 双语词库(CC-BY-SA-4.0)精选转简并重新标级的职场通用词层,以及从开放词库 kajweb/dict 合并的考试核心词(CET-4/CET-6/考研/IELTS 四本,难度 2/3/3/4,标core标签,含音标与双语例句)——支撑全库查词并大幅拓宽主题与词包覆盖面。 - State: word states (mastered / known / fuzzy), collapsed flag and settings persist in browser
localStorage(dsh.english-lounge.v1); the word book is derived from them (new + fuzzy), and legacy records stored astruekeep working as "known". 词的掌握状态(熟悉/认识/模糊)、收起状态与设置都存于浏览器localStorage(dsh.english-lounge.v1),生词本由状态实时派生(生词+模糊);旧版本存为true的认识记录继续按「认识」生效。
Install · 安装
Requires DSH web/desktop with the shipped right sidebar (standard desktop profiles). 需要带右侧栏的标准 desktop profile。
Option A — via the plugin market (Discover) · 通过插件市场
In DSH: Plugins → Discover → 索引来源(Index sources)→ Add index source, then add:
https://raw.githubusercontent.com/wmingzhou7-cell/DSH-English-learning/main/index.json
Then search “English Lounge / 英语角” and click Install. 在 Discover 里搜索安装即可。
Option B — direct Git spec · 直接按 Git spec 安装
plugin_manager 的 install_bundle(或 Plugins 页安装入口)使用如下 spec(commit 以 main 最新为准):
git+https://github.com/wmingzhou7-cell/DSH-English-learning.git#<commit-sha>
Option C — local checkout · 本地目录安装
Clone this repo, then point install_bundle at the checkout directory. 克隆仓库后将目录交给 install_bundle。
Compatibility · 兼容性
Developed and tested on DSH 0.2.2-rc.1 (desktop profile, web client). The index entry declares no engines.dsh range; it relies on the right-sidebar tab registry (ctx.sidebarRightTabs) shipped in the 0.2.x line — older hosts will show the dock strip but no sidebar page. 基于 DSH 0.2.2-rc.1 开发测试;索引未声明 engines.dsh 范围,过旧宿主仅有闪卡条而无右侧栏页。
Privacy · 隐私
Everything runs in the browser. Topic detection uses only the session title and a bounded slice of recent session text (kept in memory, never persisted or uploaded); saved topic packs stay in browser localStorage. Nothing leaves the machine beyond what DSH itself already exchanges. 全部逻辑在浏览器本地运行;主题识别只用会话标题与最近会话文本的有限片段(仅在内存中,不落盘、不上传),保存的主题词包只存浏览器 localStorage;除 DSH 本身交换的内容外无任何数据离开本机。
Implementation notes · 实现说明
- Pure client plugin: the Host half is an empty
apply(); all rendering lives in the lazy browser module (client.js) with React from the host module table. 纯 Client 插件,宿主半为空。 - Mounts:
conversation.composer.dock(session-scoped slot, per-sessioninject(sessionId)), and a right-sidebar page type viactx.sidebarRightTabs.register+sidebar.right.pane.tab/sidebar.right.pane.tab.title(key = type id), opened withctx.sidebarRight.openTab(kind); a guide entry card registers the way in. - Running state:
sessions.binding(id).session.getSnapshot().running; title:sessions.listcatalog snapshot. - Styling uses only host theme tokens (
--dsw-alias-*); literal colours appear solely in the brand glyph. 样式仅用宿主主题 token。 - No harness client package is
required; no DOM writes outside the component tree. 不 require 任何宿主客户端包。
Roadmap ideas: SM-2 review queue, CSV import. 路线图:SM-2 复习队列、CSV 导入。(主题识别与主题词包已在 v1.3.0 落地,词包功能自 v1.4.0 起停用待打磨;三态词卡/生词本检索与分页/全库查词/词库扩充已在 v1.4.0 落地)
License
Comments
Loading…
Similar plugins
by wt0812
Offline vocabulary panel: a capsule beside the composer opens a word card, and a dockable tabbed panel tracks today, progress, the mistake book and settings.
★ 3
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add dsh-vocab-studyIntent Translator for DeepSeek Harness: turn plain-language drafts into structured prompts with a plain-to-professional term glossary.
★ 0
MIT
JavaScript
dsh plugin --profile web add @ffffffcn/dsh-intent-translator✦
No screenshots
by Winter-And-You-Gone
Rotates the model status line through a 53-phrase English/Chinese deep-theme pool: a random pick at turn start, event-driven switching on new thinking segments or tool calls (3s throttle), and a click
★ 1
MIT
JavaScript
Aug 30, 2026
dsh plugin --profile web add dsh-deep-verbsby FeatherHunter
Right-side prompt toolbox panel with 24 built-in deep templates plus user-defined ones, accessible via the /prompt slash trigger and a context-aware floating suggestion card; one-click inserts the sel
★ 163
↓ 1.6k/wk
MIT
JavaScript
Nov 8, 2026
dsh plugin --profile web add dsh-prompt应声 · 快捷输入:输入框左侧的九宫格快捷短语面板。9-grid quick-phrase pad docked left of the composer.
★ 1
MIT
JavaScript
dsh plugin --profile web add dsh-quick-inputby tuogusa
Word auto-completion in the Web composer: prefix-matched suggestions sorted by closeness, arrow-key selection and Enter to confirm.
★ 3
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-word-complete