Fork-point 工具回溯首个错误点精准纠错

原标题:Show HN: Fork-point – Practice a language by rewinding to your first mistake
38AI 研判分

Fork-point 是一款面向第二语言写作的纠错技能,通过增量前缀可存活分析逐单元评估句子,在首个导致后续连锁错误的根节点处停止并给出修正,避免传统纠错满屏红笔。它支持空格分词与黏着语等不同语言形态,可作为技能包安装到 Claude Code、Cursor 等编码智能体中。

关联知识实体

报道正文

本文目录4 个章节

fork-point

Surgical error repair for second-language (L2) output using incremental prefix survivability.

<img width="952" height="623" alt="image" src="/api/v1/file/hot_img_6efba6fc6ad78db1eb34fb6293d9ec5e.webp" />

Install

BASH
npx skills add hiAndrewQuinn/fork-point

Or install globally across supported coding agents (Claude Code, Codex, Cursor, Antigravity, Gemini CLI, etc.):

BASH
npx skills add hiAndrewQuinn/fork-point -g

How /fork-point Works

When you write a sentence in a second language and make an early inflection, particle, or word-order mistake, everything downstream often breaks as a cascade consequence. Standard corrections dump a wall of red ink covering both the root mistake and all the secondary fallout.

/fork-point evaluates your L2 attempt left-to-right, unit by unit (words for space-delimited languages; morphemes, particles, or bunsetsu for agglutinative/unspaced languages), asking at every boundary:

"Given any provided context, can a native speaker continue from this exact prefix to express the intended meaning naturally and idiomatically, without syntactic contortion or unintended pragmatic shift?"

  1. Stops at the first failing boundary (the fork point).
  2. Masks all downstream cascade errors with ... so you aren't distracted by secondary fallout.
  3. Rewinds you to that exact prefix and asks you to type the full corrected sentence from scratch.

You can also include an optional Context: line to specify register (e.g., kirjakieli vs. puhekieli), situational/aspectual framing, or Dialogue Mode (which lets harmless form slips pass and only forks when meaning or pragmatics breaks). When no context is given, ambiguous forms survive if they work under at least one plausible reading.

Before / After Example

Intended (EN): "We talked about the meeting yesterday."
Attempt (FI): Me puhuimme eilen kokouksen.

Standard AI feedback: Long grammar explanation comparing genitive vs. elative, plus alternative phrasings.

/fork-point feedback:

  • Me ✅ puhuimme ✅ eilen ✅ kokouksen ❌
  • Fork point: puhua ("to talk about") governs the elative case (-sta/-stä), not the genitive (-n). Use kokouksesta.
  • Rebuild from the fork point: Me puhuimme eilen kokouksesta... — type the full sentence again!

If your attempt also had mistakes after the fork point (e.g., Yo soy cansada por no dormí bien. for "I am tired because I didn't sleep well"), /fork-point stops right at the root cause:

  • Yo ✅ soy ❌ ...
  • Fork point: Temporary states like "tired" use estar rather than ser. Replace soy with estoy.
  • Rebuild from the fork point: Yo estoy... — type the full sentence again!

Using the Optional Context: Field (Japanese)

Without context, 私は冷たいです。 (Watashi wa tsumetai desu.) is grammatically valid ("I am an emotionally cold person" or "cold to the touch"). Adding Context: pins down the intended situation so /fork-point catches the lexical/pragmatic fork immediately:

Context: I am standing in a field in February without a jacket (not describing an emotionally cold personality).
Intended (EN): "I am cold."
Attempt (JA): 私は冷たいです。

/fork-point feedback:

  • 私は ✅ 冷たい ❌ ...
  • Fork point: Given the context (freezing outdoors), tsumetai (冷たい) means cold to the touch or emotionally aloof. For feeling cold in chilly air, use 寒い (samui).
  • Rebuild from the fork point: 私は寒い... — type the full sentence again!
<details> <summary><strong>Why it works (SLA & psycholinguistic grounding)</strong></summary>

Every constraint in SKILL.md maps to a specific finding in Second Language Acquisition and incremental sentence processing:

Skill MechanismSLA / Psycholinguistic PrincipleWhat It Prevents
Left-to-right prefix checkIncremental & Predictive Processing (Levelt; Pickering & Garrod)Treating root case-frame commitments as isolated word swaps
Stop at first ❌ + mask ...Noticing Hypothesis (Schmidt) & Focused WCF (Ellis; Sweller)Working-memory overload from downstream agreement cascades
Rewind & retype from scratchSkill Acquisition Theory / ACT-R (DeKeyser; Anderson)Patching single words mid-string instead of proceduralizing clean sequences
Optional Context & Dialogue ModeFocus on Form vs. Focus on Forms (Long; Swain) & Functional SLA (Bardovi-Harlig; Klein & Perdue)False-positive aspect/register flags and conversational flow breakdown
</details>