← Back to Ad Astra Vocab
Learning Mode Guide

How the Ad Astra Vocab learning mode actually works

This page explains the spaced-repetition rules behind review, queue selection, scoring, and what “Mastered” really means. Both the Chinese and English versions are included here so users can read whichever feels more natural.

中文说明

这份说明对应当前 Ad Astra Vocab 里的学习模式与 SRS 规则。

1. 总览

系统采用一套轻量级的间隔重复机制,思路接近 SM-2。每次你复习一张卡片时,系统会更新卡片的 SRS 状态、下一次到期时间、是否算作已掌握,以及你的复习日志。

页面显示会立刻更新;服务端持久化会随后完成,其中 SRS 状态保存带有一个很短的 debounce。

2. 什么是 SRS

`SRS` 是 `Spaced Repetition System` 的缩写,也就是“间隔重复系统”。

它的核心思路是:不是每张卡都按同样频率复习;记得越稳,下一次间隔越长;越容易忘或回忆越吃力,系统就越早把它重新推回来。

它的目标是用更少的重复,换来更稳定的长期记忆。

3. 卡片状态

New: repetitions === 0
Mastered: interval >= 21
Learning: 介于两者之间

`Mastered` 不是“答对过一次”,而是“当前复习间隔已经达到至少 21 天”。

4. 四档评分逻辑

  • Again:重置为重新学习。`repetitions = 0`,`interval = 0`,`failCount + 1`,`easeFactor - 0.2`,最低不低于 `1.3`。
  • Hard:记住了但比较吃力。下一次间隔为 `1` 天或 `max(1, round(interval * 1.2))`,`easeFactor - 0.15`。
  • Good:正常回忆。第一次 `1` 天,第二次 `3` 天,之后为 `round(interval * easeFactor)`。
  • Easy:非常轻松。第一次 `4` 天,第二次 `7` 天,之后为 `round(interval * easeFactor * 1.3)`,同时 `easeFactor + 0.15`,最高到 `3.0`。

5. 逾期惩罚与到期时间

如果你是在卡片过期之后才复习,系统会先应用一个遗忘曲线惩罚:`easeFactor` 会按 `overdueDays * 0.02` 下调,最多惩罚 `0.3`,且最低不会低于 `1.3`。

评分逻辑结束后,系统会把新的 `interval` 加到今天日期上,生成新的 `dueDate`,同时更新 `lastReview`。

6. 复习队列模式

Due Cards 到期卡并打乱
Random 全量随机抽最多 50 张
By Year 先按年份筛选再打乱
Difficult 按 failCount 排序取前 50
Suspect 复习被标记为可疑注释的卡片

7. 实时更新与服务端持久化

评分之后,浏览器里会立刻更新当前卡片状态、`Due` 数量、`Mastered` 数量、当前复习进度和下一张卡。

SRS 状态写入服务端时带有大约 1 秒 debounce,所以页面是实时变化的,但服务端通常会在约 1 秒内追上。复习日志则是每次评分就直接发送。

8. 排行榜计分规则

score = mastered * 10 + learning * 2 + streak * 5

其中 `mastered` 指 `interval >= 21` 的卡,`learning` 指 `repetitions > 0` 且 `interval < 21` 的卡,`streak` 指连续每天至少复习一次的天数。

English Guide

This guide matches the current learning-mode and SRS rules used in Ad Astra Vocab.

1. Overview

The app uses a lightweight spaced-repetition system inspired by SM-2. Each review updates the card’s SRS state, next due time, whether it counts as mastered, and the review activity log.

The UI updates immediately after each rating. Server persistence follows right after that, with a short debounce for SRS state.

2. What SRS means

`SRS` stands for `Spaced Repetition System`.

The basic idea is simple: not every card should come back at the same speed. Cards you remember well should return later, while cards you forget or recall weakly should return sooner.

The goal is to reduce unnecessary repetition while protecting long-term memory.

3. Card statuses

New: repetitions === 0
Mastered: interval >= 21
Learning: everything in between

`Mastered` does not mean “reviewed once successfully”. It means the current interval has reached at least 21 days.

4. Rating logic

  • Again: resets the card for relearning. `repetitions = 0`, `interval = 0`, `failCount + 1`, `easeFactor - 0.2`, floor `1.3`.
  • Hard: remembered with effort. Next interval becomes `1` day or `max(1, round(interval * 1.2))`, and `easeFactor - 0.15`.
  • Good: normal successful recall. Intervals go `1 day`, then `3 days`, then `round(interval * easeFactor)`.
  • Easy: effortless recall. Intervals go `4 days`, then `7 days`, then `round(interval * easeFactor * 1.3)`, while `easeFactor + 0.15` up to `3.0`.

5. Overdue penalty and due dates

If a review happens after the due date, the app first applies a forgetting-curve penalty: `easeFactor` is reduced by `overdueDays * 0.02`, capped at `0.3`, and never drops below `1.3`.

After the rating logic runs, the app adds the new `interval` to today’s date, stores the result as the new `dueDate`, and updates `lastReview`.

6. Review queue modes

Due Cards due cards, shuffled
Random up to 50 random cards
By Year year-filtered, then shuffled
Difficult top failCount cards
Suspect cards flagged as suspect annotations

7. Real-time updates vs server persistence

After a rating, the browser immediately updates the current card state, due count, mastered count, session progress, and the next card shown.

SRS state is saved to the server with a debounce of about 1 second, so the UI feels real-time while the backend catches up right after. Review logs are sent per action and are more immediate.

8. Leaderboard scoring

score = mastered * 10 + learning * 2 + streak * 5

Here, `mastered` means cards with `interval >= 21`, `learning` means cards with `repetitions > 0` and `interval < 21`, and `streak` means consecutive days with at least one review.