siniaev.dev / Woordje / aantekeningen Nov 2026 · woordje.app
Woordje, n.Dutch for “little word”: the diminutive of woord. Every diminutive takes het, which is the kind of rule this app is about.

Woordje.

A Dutch vocabulary trainer for the words you actually meet. You add them yourself, an LLM fills in the grammar, and every answer is typed and graded, with the reason when it’s wrong.

17
languages
9
exercise types
2,293
word pages
750+
tests
01What and why

Your own words, checked by a model

Most vocabulary apps give you a course and a multiple-choice question. Woordje does the opposite. You type in the words you run into at work, in a letter or in class, and practise producing them: recall the Dutch from the meaning, put it into a sentence, build the sentence in the right order, pick de or het. A model reads each typed answer and says what was wrong with it.

I built it to learn three things properly, in one product with real users:

  • where an LLM is good enough to grade free text, where it isn’t, and how to measure the difference instead of guessing;
  • how to keep language data right when the model gets articles and word types wrong now and then;
  • everything around the AI: a cheap server, payments by the cent, search-friendly public pages, privacy and security, run by one person.
Exercises
9 types: recall, de/het, plural, conjugation, verb forms, separable verbs, fill in the blank, word order, free sentence
AI
Gemini 3.5 Flash-Lite, 15 prompts, each with its own thinking budget chosen by an eval
Languages
Translations in English plus the learner’s own language; the vocabulary test takes answers in 17
Public pages
2,293 word pages, 1,113 de/het pages, 3,413 URLs in the sitemap, all server-rendered
Data
Frequency from OpenSubtitles word lists; lemmas, genders and plurals from Wiktionary via kaikki.org
Code
One FastAPI app, 750+ tests, over 450 commits since 25 March 2026
02The product in use

A list, a word, an exercise

The library is the centre of it: every word with its article, its translation in two languages, a part-of-speech tag and five dots that fill up as you get it right. Five clean greens in a row and the word is mastered.

The word library: Dutch words with English and Spanish translations, part-of-speech tags and progress dots
Fig. 1. A demo learner’s library: Dutch, English, Spanish, a tag and progress. Blue edge for words, green for expressions.

Most practice happens on a phone, so the app installs to the home screen and can send one reminder a day on days without practice. Nothing else is pushed.

Words can be sorted into groups (a book chapter, a week of lessons), and practice can be limited to them. A flashcard file from another app imports in batches, skipping words the learner already has before any model is called.

The same library on a phone, with a tab bar at the bottom
Fig. 2. The same list on a phone, where most practice happens.

Adding a word

You can type any form you came across. Here the learner typed liep, a past tense. The model works out the dictionary form, lopen, and fills in the conjugation, a plain-Dutch meaning with its translation, an example and a note on why the verb is irregular.

If lopen were already in the list, it would say so instead of adding a second copy. A word with two readings, like schort (an apron, or “suspends”), offers the other one to switch to.

Adding the word liep: the app stores lopen, to walk, with its forms, a Dutch explanation and an example
Fig. 3. Typed liep, stored lopen: every form filled in by one analysis call.

Practising it

A fill-in-the-blank exercise: the learner typed onthoud where onthouden was needed, and the explanation says why
Fig. 4. Fill in the blank. The sentence is generated for this word; the answer onthoud is graded wrong with the reason: after the modal verb kan, Dutch wants the infinitive.
The de or het exercise: plezier, the learner picked de, the answer is het plezier
Fig. 5. De or het needs no model at all: the article was settled when the word was added (see 04).

The public side

Anyone can look a word up or take the vocabulary test without an account. Each word page shows the article, forms, pronunciation and real example sentences, and offers to add the word to your list. The test samples 24 words from five frequency bands, takes typed answers in 17 languages and estimates how many of the 10,000 most common words you know.

The public word page for gezellig with forms, three example sentences and related words
Fig. 6. A public word page: server-rendered HTML, so search engines and AI assistants can read it without running any JavaScript.
The gezellig word page on a phone
Fig. 7. The same page on a phone.
A vocabulary test result: about 2,350 Dutch words, level B1, with the words missed
Fig. 8. A test result. The words missed can go straight into the learner’s list.
03How it fits together

Architecture

One FastAPI app in Docker Compose on a small Hetzner server, behind Caddy. Data is one SQLite file on a mounted volume. Public pages are rendered on the server with Jinja; the app itself is a single HTML page with Alpine.js, vendored and pinned, and a Tailwind stylesheet built ahead of time. Every model call goes through one module, llm.py.

outside Browsers, phonespublic pages, /app, thehome-screen web app Google sign-inID token, no passwords Gemini3.5 Flash-Lite, JSON Stripetop-ups, VAT receipts Resend, Web Pushemails, daily reminders(FCM, Mozilla, Apple) Hetzner CX22 · Docker Compose CaddyTLS, HTTP/2, the olddomain 301s here FastAPI appPython 3.12, 2 workers routes: thin, one per area auth: JWT, user row checked per request llm.py: every prompt, budgets, guards lexicon.py: Wiktionary articles practice: stats, mastery, review vocabtest: sampling, matching, levels content: Jinja pages, sitemap, llms.txt billing: balance per AI call visitors: daily hash, DB-IP country push scheduler: one claim per day admin: traffic, QR codes, users SQLiteone file on a volume,migrations at startup Bundled dataword catalogue, 34knoun articles, DB-IP Static assetsAlpine (pinned), builtCSS, fonts, sw.js GitHub Actionspush to main: 750+ tests, then SSH, git reset,docker compose up --build Pronunciationnext: one cached clipper word a few calls per word added checkout, signed webhook
Fig. 9. Blue is the AI path: the only place the app talks to a model. Dashed: pronunciation, which is planned.
Backend
Python 3.12, FastAPI, uvicorn, SQLite, PyJWT
Front end
Alpine.js (vendored), Tailwind built to a static file, Jinja for public pages, a service worker for the home-screen app
AI
Gemini API through google-genai, JSON output, a thinking level per prompt; Ollama as a local fallback
Language data
kaikki.org Wiktionary extract, FrequencyWords, DB-IP Lite for visitor countries
Services
Google Identity Services, Stripe, Resend, Web Push with pywebpush
Hosting
Docker Compose, Caddy, one Hetzner CX22 (2 vCPU, 4 GB), GitHub Actions
Tests
pytest, 750+; Playwright for screenshots and checks in a real browser
04Adding a word

One call to analyse, a dictionary to check it

Adding a word is one structured call: lemma, part of speech, article, forms, translations, a meaning in simple Dutch, an example and any other readings. The answer is validated before anything is stored: a part of speech outside the allow-list is dropped, a learner’s note in brackets never becomes part of the word, an article is only kept on a noun.

Articles needed more than that. The model gets one wrong now and then, and a learner who drills the wrong article for a month has learned something false. So every noun is checked against 34,203 Dutch nouns from Wiktionary. When the two agree, or the model left a gap, that’s the answer. When they disagree, one more short call decides, and the majority of the three wins, because Wiktionary is wrong too: it has het slimmerik. Nouns that take both articles, 734 of them, are never changed.

1 Typed“de liep”, “schort(kleding)” 2 Splitarticle, word,meaning hint 3 AnalyseGemini, thinking off,one JSON object 4 Validateallow-listed tags, lemmaclean, article on nouns noun inthe dict.? no takes both articlesthey disagreeagree, or a gap Keep the model’s734 nouns: never changed One tie-break call“de or het for X, meaning Y?” majority wins Take the dictionary’sno extra call 5 Storeda duplicate is caught by lemma, not spelling
Fig. 10. The add-word path. Steps 3 and the tie-break are the only model calls; everything else is rules.

The same checks repair old data. A script reviews a library in a dry run: dictionary fixes first, then the model judges each saved translation and replaces only one that is wrong or garbled, so a learner’s own wording survives. The kind of thing it catches: a body part saved as a tool, an idiom translated word for word, Russian with English letters mixed in. Nothing is written until a person has read the report, and the database is backed up first.

05An exercise

Generated, checked, then graded

A fill-in-the-blank exercise takes two model calls. The first writes a natural sentence for the word with a blank, the expected form and translations. That output is checked by code before a learner sees it: there must be a blank, at least one translation, and a separable verb must not be split where Dutch keeps it whole. That last check came from a real bug, “niet langer ___ stellen” for uitstellen; the generator now retries instead. The second call grades the typed answer and explains it.

Everything a learner types reaches a prompt only through one function that trims it, strips control characters and quotes it, and the prompt opens with an instruction to treat quoted text as data. Mastery is plain arithmetic: five clean greens in a row, with yellow for a hint.

1 Next word2 practised, 2 new,reviews every 20 2 Write a sentenceGemini, thinking on;blank, answer, 2 langs 3 Check itblank present, a splitverb is really split 4 Learner typesquoted, length-capped,marked untrusted 5 GradeGemini, thinking on;verdict and the reason Up to 3 triesthen a clear error 6 Progress5 greens in a row: mastered fails
Fig. 11. One fill-in-the-blank round. The sentence is never shown until code has checked it.
06Thinking budgets

When to let the model think

Gemini can “think” before it answers. Thinking costs output tokens and seconds, and for most prompts here it buys nothing. To choose, I wrote an eval: fixed cases for each of the app’s prompts, each with an expected verdict, run through the production prompt code with thinking on, off or capped. It reports accuracy, JSON failures, latency and cost in euros.

The result on Gemini 2.5 Flash, 30 October 2026: writing sentences and grading answers need thinking, the rest don’t. Off, those were as accurate and two to eight times faster.

promptaccuracy, thinking off ○ → on ●median latency off → onchosen 40% 70% 100% write a sentence7.7 s → 2.4 son grade fill-blank0.8 s → 2.3 son grade conjugation0.7 s → 2.3 son grade plural0.9 s → 2.4 son analyse a word1.7 s → 5.3 soff translate0.6 s → 1.6 soff check a free sentence0.9 s → 4.7 soff build word order0.6 s → 5.4 soff suggest words4.2 s → 12.6 soff
Fig. 12. Accuracy with thinking off (hollow) and on (filled), Gemini 2.5 Flash, 189 cases per mode; cases where either verdict is acceptable are left out. Blue: where thinking pays. Without it, sentence writing failed so often that the retries made it slower, not faster.

The app moved to Gemini 3.5 Flash-Lite in November. Gemini 3 models take a thinking level rather than a token budget, so the eval ran again with the levels. Minimal matched medium on every prompt but conjugation grading, and high added nothing over medium:

Prompt (3.5 Flash-Lite, 3 Nov 2026)MinimalMediumHighUsed
Analyse a word (30 cases)100%, 1.4 s100%, 3.6 s-minimal
Write a sentence (16)100%, 1.0 s100%, 2.3 s-medium
Grade conjugation (26)96%, 0.9 s100%, 1.9 s100%, 2.4 smedium
Grade fill-blank (25)96%, 0.9 s96%, 1.9 s96%, 2.5 smedium
Grade plural (20)100%, 0.9 s100%, 2.2 s100%, 2.7 smedium
Translate (20)100%, 1.0 s100%, 1.6 s-minimal

Two honest gaps. Sentence writing still runs at medium, carried over from the 2.5 result, though this eval says minimal would do, twice as fast and at a fifth of the cost. And one fill-blank case fails on every model and level: in “Het is een ___ dag”, the grader accepts mooi where Dutch needs mooie. The sets are small, so one case moves a score by four points.

07Public pages

Readable without JavaScript

Google renders JavaScript only on a delayed second pass, and most AI assistants’ crawlers never run it. So everything meant to be found is plain HTML from the server: the landing page, 2,293 word pages, 1,113 de/het pages, an FAQ, the vocabulary test, a sitemap and an llms.txt, both generated from one page registry so a new page can’t be forgotten in either.

  • The app moved off /. When the landing page was the app, it weighed 295 KB and crawlers read the admin markup; as its own page it’s 19 KB.
  • The vocabulary test costs nothing to run. Items are sampled per request and rendered into the page; answers are matched in the browser and on the server by the same rules, tested against one shared set of cases. Three invented words that look Dutch keep the score honest and never count.
  • Typography is applied, not hoped for. A template filter glues short words to the next one with a non-breaking space, so no “a” or “de” is left at the end of a line.
08Privacy, security, operations

Small, but treated as hostile

Each of these rules has a test that fails if it regresses:

  • Auth checks the database, not just the token. Every request loads the user, so blocking an account takes effect at once rather than when the token expires.
  • No third-party script can read the session. The token lives in local storage, so Alpine.js is vendored at a pinned version and the content security policy allows no CDN.
  • The one public write endpoint takes allow-lists, not patterns. Page counts accept only paths the site serves and event names it knows; push subscriptions accept only the real push services, so the server can’t be made to call an arbitrary URL.
  • Forwarding headers are trusted only from the proxy. Otherwise any client could choose the IP, and so the country, that gets recorded.
  • Visitors are counted without storing them. A visitor is a salted hash of IP and browser that changes at midnight, the country is looked up offline from a bundled DB-IP file, and nothing about the visitor leaves the server or outlives 13 months.
  • Emailed links are short-lived and single-use, and a sign-in token is never put in a URL: that was a session-fixation hole once (see 10).

Deploys are a push to main: tests in GitHub Actions, then the server resets to the new commit and rebuilds. Reset rather than pull, so a rewritten history can never wedge a deploy.

09Metrics

What it costs and how often it’s right

From the evals and the live system, snapshot of 26 November 2026. Costs are at paid Gemini prices in euros.

MeasureResultNote
Word analysis right100%lemma, part of speech, article and form, 30 cases; 1.5 s median
Generated sentences usable100%16 cases on 3.5 Flash-Lite; 94% on 2.5 Flash with thinking
Grading agrees with the expected verdict96 to 100%conjugation 96 to 100%, plural 100%, free sentence 100%
Fill-blank grading96%24 of 25; the miss accepts a wrong form (see 06)
Cost of one added word€0.0013one analysis call, median; a tie-break adds a fraction of that
Cost of one graded exercise€0.001 to €0.002sentence and grade, with thinking where it helps
Importing a flashcard file€0.0032 per cardmeasured on a real import; estimated at €0.005 up front
Tests750+must pass before any deploy

Learners pay for what they use: each AI call is priced from its token counts at what Google charges and taken from a prepaid balance, so the costs above are also what a learner pays.

10Things I got wrong

From the log

  1. The prompt taught the bad data.

    The old translation prompt gave "adjective|verb" as its example of combined tags, and the model copied it, onto nouns too. Fix: no copyable example, an allow-list of tags, and a repair script for what was already stored.

  2. A session token in a URL.

    When the site moved to its new domain, sessions were carried over with #s=<token>. A token in a link can be planted by anyone, which makes it session fixation. Fix: the handoff was removed; people on the old domain sign in again.

  3. A hostname without DNS.

    Removing the old domain’s DNS record but leaving its block in Caddy made Caddy retry certificate issuance every six hours, 1,681 log lines in a month, until the Let’s Encrypt account was pushed to staging. Fix, and the rule since: DNS first, proxy config second.

  4. Trusting one source for articles.

    The first dictionary check let Wiktionary override the model outright, and it would have written het slimmerik into a library. Fix: a vote, with a third call only when the two disagree.

11Next

Pronunciation

Learners have asked to hear their words. The plan: one audio clip per word, generated once and shared by everyone who has that word, created when a word is added and backfilled for existing lists and the public pages. Pricing is checked and small; the first step is a listening test of Dutch voices on the hard cases, ui, ij, the Dutch g and very short words.

And the de/het pages list only the het nouns no rule predicts. The de nouns without a rule get their pages next, because people search for those too.

+ More from siniaev.dev

  • Truckroll A simulated EV charging network that breaks on purpose, and the operations around it.
  • PLS:3D A one-person store for printed camo stencils, and RBaken, a LoRa team radar.
  • Books I recommend The reading behind how I lead and build.