Show HN: Fork-point – Practice a language by rewinding to your first mistake

原始链接: https://github.com/hiAndrewQuinn/fork-point

Hacker News new | past | comments | ask | show | jobs | submit login Show HN: Fork-point – Practice a language by rewinding to your first mistake ( github.com/hiandrewquinn ) 8 points by hiAndrewQuinn 1 hour ago | past | favorite | discuss help Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact Search:
相关文章

原文

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

image
npx skills add hiAndrewQuinn/fork-point

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

npx skills add hiAndrewQuinn/fork-point -g

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.

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!
Why it works (SLA & psycholinguistic grounding)

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

Skill Mechanism SLA / Psycholinguistic Principle What It Prevents
Left-to-right prefix check Incremental & 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 scratch Skill Acquisition Theory / ACT-R (DeKeyser; Anderson) Patching single words mid-string instead of proceduralizing clean sequences
Optional Context & Dialogue Mode Focus on Form vs. Focus on Forms (Long; Swain) & Functional SLA (Bardovi-Harlig; Klein & Perdue) False-positive aspect/register flags and conversational flow breakdown

MIT — see LICENSE.

联系我们 contact @ memedata.com