diff --git a/README.md b/README.md index c2b0ea7..44297d2 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ### 模式 2 · 场景训练(`actions/02-scenario-training.md`) **我在"选材"上唯一介入的地方**:你给案例,或只给主题 / 想练的词 → 我从 `me/lang.db` 挑该练的词,**据此选一个让它们自然出现的场景**,产出提示词 → 你发给**豆包**(语音)。 -- 预置 **4–6 个交流点**,可随时**反问**;待学词(`learning` / `fix`)织进提示词。 +- 预置 **4–6 个交流点**,可随时**反问**;待学词(`learning`)织进提示词。 - 结束由豆包出报告(表现分 + 新词 + 语法错误)→ 回写 `me/lang.db`。 - 自由闲聊变体也在该文件里。 - **门槛**:听 + 说达到 **C+(≈B2)** 再上真人英语角。 @@ -100,10 +100,9 @@ |---|---|---| | `new` 未学 | 词表导入、还没在训练里出现过 | 待接触 | | `known` 已掌握 | **第一轮复述(v1)**就正确用出来 | 本来就会 | -| `learning` 学习中 | v1 没用、看原文后**第二轮(v2)**才用出来 | 新学 | -| `fix` 待修正 | 复述时用错(记 `✗ 错 → ✓ 对`) | 重点复习 | +| `learning` 学习中 | v1 没用、看原文后**第二轮(v2)**才用出来;**用错 / 说错也记这里** | 重点练 | -> 用错优先:即使出现在 v1,只要用错就标 `fix`。复习环连续答对升 `known`,忘了退回 `learning`。 +> 用错/说错一律记 `learning`(不再单列「待修正」)。复习环连续答对升 `known`,忘了退回 `learning`。 ### 词汇分三类(`items.kind`) @@ -120,7 +119,7 @@ | 错误 | 去哪 | |---|---| | **语法结构**(时态 / 冠词 / 单复数 / 介词 / 语序 / 主谓一致…) | `grammar_fixes` 表 —— **按问题登记**,同一问题只更新、不新增,同一词不重复登同类错 | -| **词义 / 搭配**(用错词) | `items` 表,标 `status=fix` | +| **词义 / 搭配**(用错词) | `items` 表,标 `status=learning`(正确形式另记在 `fix` 字段) | 一个词在语法上出错,**不**在 `items` 为它建行。 @@ -132,7 +131,7 @@ actions/01 或 02 产出条目 JSON ↓ actions/langdb.py ingest me/lang.db - ├─ items (status / first / fix) + ├─ items (status / first) ├─ grammar_fixes (概括成 issue,去重,只更新) └─ skills / training_log / level_history ↓ actions/build_dashboard.py @@ -265,6 +264,7 @@ python actions/pdf_extract.py "C:/path/材料.pdf" --slug issue3 --level B2 - **ADR-014|SQLite 成为唯一事实来源**:`me/*.md` 已迁入 `me/lang.db` 并删除。写入走 `langdb.py ingest`(大模型只输出 JSON);可视化走 `build_dashboard.py`。`lang.db` 入库版本管理,`me/dashboard/` 为生成物不入 git。 - **ADR-015|`materials/` 并入 `actions/`**:`actions/` 定位为**工作台**(指令 + 模板 + 工具 + 素材)。 - **ADR-016|文档收敛到 README**:`CONTEXT.md` 并入本 README;本文件即领域模型 + 等级 + 决策的唯一文档。 +- **ADR-017|取消「待修正」状态**:不再单列 `fix` 状态;用错 / 说错一律记 `learning`(正确形式可另记在 `fix` 字段)。状态域为 `new / learning / known`。 --- diff --git a/actions/00-overview.md b/actions/00-overview.md index 9b6fc78..789716f 100644 --- a/actions/00-overview.md +++ b/actions/00-overview.md @@ -44,4 +44,4 @@ ## 说明 - `01` 的复述训练是**综合训练**:一次覆盖听 / 说 / 读 / 写。 -- `02` 的待学词来自 `me/lang.db` 的 `items` 表(`status=learning` / `fix`)——**越练越准**:练错的词会优先被编进下一个场景。 +- `02` 的待学词来自 `me/lang.db` 的 `items` 表(`status=learning`)——**越练越准**:练错的词会优先被编进下一个场景。 diff --git a/actions/01-listen-retell.md b/actions/01-listen-retell.md index b75a172..bcb4e72 100644 --- a/actions/01-listen-retell.md +++ b/actions/01-listen-retell.md @@ -39,7 +39,7 @@ 收到 v1 后: 1. 让我把材料原文贴给你(若材料是你生成的,此时才贴出原文;原文可能来自材料截图,已是文字)。 2. 逐点对比 v1 与原文:我漏了什么、误解了什么、哪些表达可以升级。给出一张"差异清单"。 - 同时**记下每个目标词汇的状态线索**:我在 v1 里就正确用出来的(→ known)、v1 没有而需要进 v2 的(→ learning)、以及我用错的(→ fix)。 + 同时**记下每个目标词汇的状态线索**:我在 v1 里就正确用出来的(→ known)、v1 没有而需要进 v2 的(→ learning)、以及我用错的(→ learning)。 3. 让我基于清单改出 v2(我的修订稿),发给你。 然后停下,等我的 v2。 @@ -54,14 +54,14 @@ 4. 输出【新词汇 JSON】。对每个值得入库的词汇,先**判定我的掌握状态**: - 我在 **v1(第一轮复述)**就正确用出来了 → `status="known"`, `first="v1"` - v1 没有、看原文后 **v2** 才用出来 → `status="learning"`, `first="v2"` - - 我复述时**用错了** → `status="fix"`,并在 `fix` 里写 `"✗ 错 → ✓ 对"` + - 我复述时**用错了** → `status="learning"`,并在 `fix` 里写 `"✗ 错 → ✓ 对"` 字段(多义词一律写成词块+上下文): - {"id":"p-0000","item":"...","level":"B1","meaning":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} + {"id":"p-0000","item":"...","level":"B1","meaning":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} 注明每条进哪个库:w- 单词 / p- 词组 / e- 表达(表达库多一个 "function" 字段)。 注意:**只有词义/搭配错误**才放这里的 `fix`(如 `✗ look after → ✓ look for`)。 5. 输出【语法修正 JSON】(**只收语法结构错误**:时态 / 冠词 / 单复数 / 介词 / 语序 / 主谓一致…): - 先**概括成一条语法问题**(不要照抄原句),同一个问题只算一条。 - - 字段:{"id":"g-0000","category":"时态","issue":"...","rule":"...","examples":"✗ 错 → ✓ 对","status":"fix","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} + - 字段:{"id":"g-0000","category":"时态","issue":"...","rule":"...","examples":"✗ 错 → ✓ 对","status":"learning","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} - 同一个词不要重复登记同一类错;同一 issue 只列一次(我落盘时会更新已有行,不新建)。 现在从【阶段 0】开始。 diff --git a/actions/02-scenario-training.md b/actions/02-scenario-training.md index ba3f95e..91da285 100644 --- a/actions/02-scenario-training.md +++ b/actions/02-scenario-training.md @@ -36,9 +36,9 @@ Rules: 选词优先级(B): -1. `status=fix`(用错待修正)——最该练 +1. `status=learning`(新学 / 用错都算)——最该练 2. `status=learning`(新学)——次之 -3. `grammar_fixes` 表里 `status=fix` 的语法问题 +3. `grammar_fixes` 表里 `status=learning` 的语法问题 4. 刚结束 session 里标记的待复习项 **选场景的原则:让这些词自然出现,而不是硬塞。** @@ -87,10 +87,10 @@ In Chinese, give me a report: - Speaking score 1–5 + estimated CEFR; listening performance - My top 3 errors + correct versions - Which target phrases I used / missed -- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "fix" with "✗ wrong → ✓ right"): - {"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} +- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "learning", putting "✗ wrong → ✓ right" in the fix field): + {"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"SESSION","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} - Grammar mistakes: list them separately, each summarized as one issue (not the raw sentence; same issue only once): - {"id":"g-0000","category":"...","issue":"...","rule":"...","examples":"✗ wrong → ✓ right","status":"fix","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} + {"id":"g-0000","category":"...","issue":"...","rule":"...","examples":"✗ wrong → ✓ right","status":"learning","count":1,"first":"YYYY-MM-DD","last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} Start by greeting me in character. ``` diff --git a/actions/03-review-srs.md b/actions/03-review-srs.md index d01d00e..c54faf1 100644 --- a/actions/03-review-srs.md +++ b/actions/03-review-srs.md @@ -28,10 +28,10 @@ 3. 批改后,为**每个条目**给出更新: - 命中(我用对了)→ streak+1,取下一档间隔,重算 next_review - 忘了/用错 → streak=0,间隔回到 1 天 - - **掌握状态迁移**:`learning`/`fix` 连续命中 2 次 → 升为 `known`;`known` 忘了 → 退回 `learning`;若我又用错 → 标 `fix` 并更新 `fix` 字段。 + - **掌握状态迁移**:`learning` 连续命中 2 次 → 升为 `known`;`known` 忘了 → 退回 `learning`。 4. 最后输出 JSON 数组,含更新后的字段: - - 词汇:{"id":"p-0001","item":"...","status":"known|learning|fix","fix":"","hits":N,"streak":N,"next_review":"YYYY-MM-DD"} - - 语法:{"id":"g-0001","category":"...","issue":"...","status":"fix|known","count":N,"last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} + - 词汇:{"id":"p-0001","item":"...","status":"known|learning","fix":"","hits":N,"streak":N,"next_review":"YYYY-MM-DD"} + - 语法:{"id":"g-0001","category":"...","issue":"...","status":"learning|known","count":N,"last":"YYYY-MM-DD","next_review":"YYYY-MM-DD"} 以及一句话【复习小结】。 注意:语法问题**按 issue 汇总**,不要为同一问题开多行。 diff --git a/actions/04-weekly-check.md b/actions/04-weekly-check.md index 2a9c6b3..8833f03 100644 --- a/actions/04-weekly-check.md +++ b/actions/04-weekly-check.md @@ -28,7 +28,7 @@ 4. 更新训练日志:给出一行 Markdown 表格,格式: | 日期 | 类型 | 材料等级 | 听 | 说 | 读 | 写 | 备注 | 5. 若某维等级变了,给出一行【等级变更历史】记录。 -6. 给出【掌握概览】文字说明(items 的 known / learning / fix + grammar_fixes 的 fix / known 计数)——具体数字由 `me/lang.db` 与仪表盘自动呈现,无需手填。 +6. 给出【掌握概览】文字说明(items 的 new / learning / known + grammar_fixes 的 learning / known 计数)——具体数字由 `me/lang.db` 与仪表盘自动呈现,无需手填。 7. 把反复出现的语法问题汇总一下(按 issue,不重复),指出下周重点攻哪几条。 规则: diff --git a/actions/2026-10-14-airport-car-rental.md b/actions/2026-10-14-airport-car-rental.md index 54925b6..91fe953 100644 --- a/actions/2026-10-14-airport-car-rental.md +++ b/actions/2026-10-14-airport-car-rental.md @@ -80,8 +80,8 @@ In Chinese, give me a report: - Speaking score 1–5 + estimated CEFR; listening performance - My top 3 errors + correct versions - Useful phrases for this scenario that I missed -- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "fix" with "✗ wrong → ✓ right"): - {"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning|fix","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} +- New items as JSON (mark my mastery state: I said it correctly on my own → status "known", first "v1"; I only said it after your hint → "learning", first "v2"; I got it wrong → "learning", putting "✗ wrong → ✓ right" in the fix field): + {"id":"e-0000","item":"...","level":"B1","meaning":"...","function":"...","context":"...","status":"known|learning","first":"v1|v2","fix":"","tags":"...","source":"2026-10-14-airport-car-rental","added":"YYYY-MM-DD","hits":0,"streak":0,"next_review":"YYYY-MM-DD"} Start by greeting me in character at the counter. ``` diff --git a/actions/2026-10-14-example.md b/actions/2026-10-14-example.md index c1aafe8..54d390d 100644 --- a/actions/2026-10-14-example.md +++ b/actions/2026-10-14-example.md @@ -75,9 +75,9 @@ Tom came home late last night. He put his bag on the table and went to the kitch ```json [ - {"id":"g-0001","category":"时态","issue":"一般过去时用了动词原形","rule":"go→went, look→looked, check→checked","examples":"✗ he go → ✓ he went;✗ he look → ✓ he looked","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}, - {"id":"g-0002","category":"时态","issue":"过去完成时漏用","rule":"先发生的过去动作: had + p.p.","examples":"✗ he leave it → ✓ he had left them","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}, - {"id":"g-0003","category":"冠词","issue":"单数可数名词漏冠词","rule":"单数可数名词前加 a/the","examples":"✗ under sofa → ✓ under the sofa","status":"fix","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"} + {"id":"g-0001","category":"时态","issue":"一般过去时用了动词原形","rule":"go→went, look→looked, check→checked","examples":"✗ he go → ✓ he went;✗ he look → ✓ he looked","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}, + {"id":"g-0002","category":"时态","issue":"过去完成时漏用","rule":"先发生的过去动作: had + p.p.","examples":"✗ he leave it → ✓ he had left them","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"}, + {"id":"g-0003","category":"冠词","issue":"单数可数名词漏冠词","rule":"单数可数名词前加 a/the","examples":"✗ under sofa → ✓ under the sofa","status":"learning","count":1,"first":"2026-10-14","last":"2026-10-14","next_review":"2026-10-15"} ] ``` diff --git a/actions/_session-template.md b/actions/_session-template.md index 25d523b..23f696a 100644 --- a/actions/_session-template.md +++ b/actions/_session-template.md @@ -26,7 +26,7 @@ - v1 就正确用出(→ `known`): - v2 才用出(→ `learning`): -- 用错待修正(→ `fix`): +- 用错 / 说错(→ `learning`): ## v2(修订稿) diff --git a/actions/build_dashboard.py b/actions/build_dashboard.py index 5cf9c0c..29b737c 100644 --- a/actions/build_dashboard.py +++ b/actions/build_dashboard.py @@ -79,7 +79,6 @@ tr:last-child td{border-bottom:none} .badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600} .b-known{background:rgba(46,204,113,.15);color:#2ecc71} .b-learning{background:rgba(241,196,15,.15);color:#f1c40f} -.b-fix{background:rgba(231,76,60,.15);color:#e74c3c} .b-new{background:#2a2f3a;color:#9aa2b1} .fx{color:#ffb4a8} .toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px} @@ -257,7 +256,6 @@ BODY_ITEMS = """ - @@ -292,8 +290,8 @@ document.getElementById("overview").innerHTML = Object.keys(glyph).map(k => { const o = ov[k]; const T = o.total; const parts = k === "grammar" - ? `待修正 ${o.fix}/${T} · 已克服 ${o.known||0}/${T}` - : `未学 ${o.new||0}/${T} · 学习中 ${o.learning}/${T} · 已掌握 ${o.known}/${T} · 待修正 ${o.fix}/${T}`; + ? `未掌握 ${o.learning||0}/${T} · 已掌握 ${o.known||0}/${T}` + : `未学 ${o.new||0}/${T} · 学习中 ${o.learning}/${T} · 已掌握 ${o.known}/${T}`; return `