Skip to content
Contact
  • Open source
  • Embedded
  • 2026–

Tsuzuri

An offline Korean↔Japanese translation writing drill for the Pomera — it points things out instead of grading

My role

Planning, design and development, end to end

Stack

  • Go
  • kagome
  • Claude API
  • Debian armhf
  • Screen render, home — nine numbered menu lines in the style of Korean dial-up BBSes: start drill, resume, review drill, view corrections, progress, export, settings, fetch packs, collect corrections. The shelf on the right lists each downloaded pack on its own line with its direction, level, topic and problem count
  • Screen render, prompt — a Korean sentence with a Japanese answer being typed beneath it
  • Screen render, analysis — the answer beside the reference translation, flagging two missing expressions, a na-adjective conjugation error and a polite/plain register mismatch. Real output from the analysis engine
  • Screen render, analysis — when the answer matches and there is nothing to flag, it shows only check marks and moves on quietly. Real output from the analysis engine
  • Screen render, correction — answer, correction and reference on three lines, separating errors (✗) from nuance (·). The correction text is sample data to show the screen
  • Screen render, progress — the day streak and days practised, answers submitted and corrections received, problems due for review and ones graduated, the five expressions most often missed, and when the next review falls due. The figures are sample data to show the screen
  • Screen render, settings — API key, model, default level, topic and pack size, above a warning that the settings are stored in plain text on the SD card and a note on keeping the key in an environment variable instead

A two-way Korean↔Japanese translation writing drill that runs offline in the Debian mode of the King Jim Pomera DM250. A prompt appears in one language, you write it in the other, and you get feedback on what you wrote. Released under the MIT license.

The screens above are renders: the real binary’s output from a virtual terminal, laid out at the Pomera’s 1024×600 resolution. They are not photos of the device, but the column count is measured from the hardware (128×36 cells, an 8×16 font); the font itself is a stand-in from a Mac. The two analysis screens are real engine output; the correction text and the progress figures are sample data.

What it does

  • Offline drills — once a problem pack is downloaded, prompting, writing and analysis all run without a network. The only online moments are fetching packs and collecting corrections
  • Pointing things out with morphological analysis — it checks whether key expressions are missing, whether a form isn’t in the dictionary (typos, bad conjugation), and whether registers are mixed (Japanese polite and plain forms, Korean polite and plain endings), comparing down to dictionary forms
  • A correction queue — correction requests pile up offline and come back together when Wi-Fi connects
  • Review notes — exported as plain text files that the Pomera’s stock mode can read

Judgment calls

The device ruled out most of the options. A 32-bit ARM chip with 1 GB of RAM puts offline translation engines outside their supported architectures, and a local LLM runs but nowhere near usable speed. So on the device it only does what rules can do, and corrections that need judgment wait for a connection. What’s left isn’t cheap either: loading the morphological dictionaries takes 0.4 and 0.9 seconds on a Mac, and 16.5 seconds (Japanese) and 39 seconds (Korean) on the device. The CPU tops out at 816 MHz and the profile is almost all the cost of building the dictionary structures, so there was nothing to shave. A dictionary is read once and reused for the whole session, the wait shows an estimate and a progress line, and it is re-read only when you switch direction — in a fresh process, because of memory.

Go was chosen for one library: the morphological analyser. kagome is pure Go, so a 32-bit ARM binary builds in one step with no C dependencies. The dictionaries are embedded too, so installing means copying one file to the SD card.

It doesn’t give scores. A translation has many right answers but only one reference. Mark people down for differing from it and you teach them that correct answers are wrong. So the ✗ and ⚠ on screen are requests to double-check, not wrong-answer marks — and the data model has no score field at all.

No full-screen TUI. Reading keys one at a time — raw mode — risks breaking the path an input method uses. That is not only a Japanese problem: it holds for mozc and for Korean byeoru alike, and if either language can’t be typed the app has no reason to exist. So input stays line-based, and navigation follows the layout of Korean dial-up BBSes like Hitel, where you move by typing a number and never need arrow keys — the same constraint produced the same answer. Both languages do type on the hardware, confirmed on the device, but that is not the same as saying a TUI would have been fine. Ordinary ANSI, like clearing the screen, is used; only raw mode is not.

Don’t trust what the terminal hands you. A screen that was fine on a Mac broke twice on the device. Once the title line wrapped onto two lines, and the culprits were · and ↔ — characters Unicode classifies as East Asian Ambiguous, which a terminal may legitimately draw one cell wide or two. The app counted them as one, fbterm drew them as two, and a 125-column line became 132 and overflowed. One wrapped line shifts every box and rule below it. The other time, a Korean topic typed into settings saved only one of the last character’s three UTF-8 bytes: Enter arrived before the input method had committed the character being composed. That one byte broke parsing of the settings file, and it surfaced as three symptoms — fetching packs errored, the topic read “none”, and the default level looked like it wasn’t saving. Neither was solved by counting more carefully or repairing the input. Ambiguous-width characters came out of the title and the body width now leaves six columns of slack; a broken byte is refused rather than stored. The spec doesn’t decide how a given terminal draws these, so even careful counting could only be checked by looking at the device’s screen. What can’t be measured doesn’t get relied on.

Next projectRooftopA rooftop on the web that opens at sunset — warm your hands by the fire, burn one worry, and leave without a wordTake a look