Files
lang/library/SCHEMA.md
T

43 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 原子库结构定义
三个库都用同一套 Markdown 表格字段,方便 LLM 读写、也方便日后脚本解析。
## 通用字段
| 字段 | 含义 | 示例 |
|---|---|---|
| `id` | 唯一编号,前缀区分库:`w-` 单词、`p-` 词组、`e-` 表达 | `p-0007` |
| `item` | 条目本体。**多义词必须带上下文写成词块**,禁止裸词 | `look for` |
| `level` | 难度 CEFR 等级 | `A2` |
| `meaning` | 简明中文释义(就地理解用,不追求完备) | 寻找 |
| `context` | 微上下文 / 例句,说明它在此义下的用法 | `I'm looking for my keys.` |
| `tags` | 逗号分隔标签(功能 / 场景 / 词性) | `请求,日常` |
| `source` | 来源:session 文件名或 `seed` | `2026-10-14-lr-01` |
| `added` | 入库日期 | `2026-10-14` |
| `hits` | 复习命中次数 | `3` |
| `streak` | 连续命中次数(决定间隔) | `2` |
| `next_review` | 下次复习日期 | `2026-10-21` |
## 表达库附加字段
| 字段 | 含义 | 取值 |
|---|---|---|
| `function` | 语用功能 | `注意,请求重复,犹豫,附和,转题,条件,转折,递进,让步,举例,时序` 等 |
## 间隔梯度(天)
`1 → 3 → 7 → 16 → 35 → 75`
- 命中(能正确使用/说出)→ `streak+1`,取下一档间隔。
- 忘了 → `streak=0`,回到 `1` 天。
## 写回规则(给 LLM)
每次 session 结束后,教练以 **JSON 数组**输出新条目,字段与上表一致,然后追加进对应 `*.md` 表格末尾:
```json
[
{"id":"p-0007","item":"look into","level":"B1","meaning":"调查","context":"The police are looking into the case.","tags":"动词短语","source":"2026-10-14-lr-01","added":"2026-10-14","hits":0,"streak":0,"next_review":"2026-10-15"}
]
```