Why I built my own JLPT N5 trainer
I stopped fighting Duolingo's algorithm and built my own N5 trainer with Claude Code. This is a story about building, not about learning results.
· 5 min
I'm learning Japanese for the JLPT N5 exam. Somewhere in week two of Duolingo the mismatch started to bother me. The app wanted to teach me about zoos and colors, while N5 wants verb conjugation and about 800 specific kanji-vocabulary pairs. What the app showed me and what the exam tests barely overlapped. So I built my own trainer instead.
This is a story about building, not about learning results. I have zero data on whether the app improved my retention compared with Anki or Duolingo, and I'm not going to make any up in this post either. What I have is a working app, built in about ten weeks by someone who had never shipped a native app. Claude Code wrote almost all of the code.
Why generic apps fall short on a fixed exam
N5 is a fixed target: a known vocabulary list, a known set of kanji, a known grammar scope. Duolingo's curriculum doesn't map to that. It teaches broad conversational Japanese at its own pace. It mixes in words and grammar points N5 doesn't need yet and takes its time getting to the ones it does. If you follow the course to the letter, you learn plenty that doesn't count for the exam and miss what does.
Anki gets closer, because you control the deck yourself. Building a good N5 deck by hand is still a project of its own, though. It has to understand verb groups and conjugate correctly, and that quickly eats as much time as the studying itself. I wanted the deck, the conjugation logic and the review scheduler in a single tool, cut exactly to what the exam tests and nothing else.
What actually got built
Over 101 commits between May 3 and July 12, 2026, the idea turned into something with real substance. Not a toy.
The vocabulary file alone (data/vocab.js) runs 4,154 lines. It holds roughly 3,000 entries, each tagged with its part of speech so the app knows how to conjugate it. A separate kanji dataset (data/kanji.js) covers the complete N5 kanji list in 738 lines. On top of that come about 2,000 lines of application logic across four files: app.js for the interface, srs.js for spaced repetition, conjugate.js and pos.js for grammar.
The spaced-repetition scheduler is a Leitner algorithm I wrote myself. Cards move between five boxes with growing review intervals: 1, 2, 4, 7 and 14 days. Each round pulls the weakest due cards first, before new ones get mixed in. It's a well-known algorithm, nothing novel. But I wanted to understand exactly how "due" gets calculated instead of trusting a system I can't follow.
The conjugation engine was the harder part. It takes a word in dictionary form, its kana reading and a part-of-speech tag, and from those it generates the common N5 forms: ます-form, て-form, た-form, ない-form. That works for godan verbs, ichidan verbs and irregulars like する and 来る, where the reading changes but the kanji doesn't. Getting the sound changes right, the onbin shifts where う, つ and る all become って, took real iteration rather than one clean pass.
Where I have no data, and that's how it stays
Here's the honest gap. The app's review history lives in the browser's localStorage, on my phone, not in a database I could query. I can't give you a retention rate or a number of words learned per week, because I never built the logging for it.
What I can back up is what got built, not what got learned. The vocabulary count, the line counts, the commit history, the test suite: those are facts about the repository. Whether the app actually taught me Japanese faster than a stack of Anki flashcards is a claim, and I have no evidence for it, so I'm not making it.
Technically that gap is easy to close, with a logging layer and a bit of SQL. Maybe I'll add one at some point. Until then I'd rather say "I don't know" than invent a number that reads well. It's the same standard I apply to AI-generated content: a claim without evidence isn't a claim, it's marketing.
What actually surprised me while building it
I'm not a professional app developer. I've written scripts and automations, but I had never shipped anything with a service worker, offline caching and its own test suite. What changed the equation wasn't a smarter model. Claude Code kept me in the driver's seat across a long chain of small, testable steps, instead of one big prompt and a lot of hoping. For a project this size, a more expensive model like Claude Fable 5 wouldn't have helped either. That pays off for autonomous agent runs that go on for hours, not for an N5 vocabulary trainer.
Four test files (srs.test.mjs, conjugate.test.mjs, pos.test.mjs, vocab-level.test.mjs) exist because I insisted on them early, the same way you'd insist on good context for any AI coding session. When the conjugation logic broke on an edge case, a compound する-verb with an irregular reading, the tests caught it before I did. Without them I'd probably have noticed the bug only after memorizing wrongly conjugated sentences myself, which would have defeated the whole point of the app. That habit did more than any single prompt to keep 101 commits from turning into 101 regressions.
It's also a PWA: installable, works offline. There's no app store review standing between a commit and something on my home screen. For a project this narrow, that mattered more than I expected.
Whether this is worth it for your next problem
I'd build it again. It doesn't prove AI can replace language learning, and I have no interest in claiming that. What it proves is narrower and more useful to me: for a clearly defined problem, you can build exactly the tool that fits. You don't have to bend your habits around whatever a general app happened to prioritize.
If you're weighing whether to build something yourself or adopt an existing app, the real question isn't "can AI build this for me". It's whether your problem is specific enough that owning the tool outweighs the convenience of someone else's. For N5, in my case, it was. For a big, well-served language like Spanish or English, with huge existing apps behind it, I'd probably decide differently. The best way to find out whether it holds for your next problem is the way I did it: say exactly what you actually want and treat the AI as a tool you direct, not an oracle you trust blindly.
FAQ
- Is the app faster or better than Duolingo for learning Japanese?
- I honestly don't know, and I'm not claiming it is. What I can say: the app is cut exactly to N5, which Duolingo isn't, and I own both the data and the logic behind it. Whether that beats a polished, gamified app built by a whole team is a different question, and I have no data on it.
- Is there any proof the app actually helped you learn?
- No, and I'm saying that openly. My review history sits in the browser's localStorage, not in a database I could query, so I can't publish a retention rate. The numbers I can back up are about what got built, not about proven learning results.
- Do I need to know how to code to build something like this myself?
- You need to know what you want, be willing to test it every day, and be able to steer an AI coding agent through 101 small commits and about ten weeks. I'm not a professional app developer, and I wrote almost none of the syntax myself.
- What tech does the app actually run on?
- Plain vanilla JavaScript, no framework. It's a PWA, so it installs on your phone and works offline, and it has its own test suite covering the spaced-repetition scheduler, the conjugation engine and the part-of-speech logic.

Eric Hinzpeter
Eric Hinzpeter, Senior B2B Content Strategist. He builds AI agents and marketing automation for production use and writes up what comes out of it here.