← Projects

Wikiglot

Wikiglot is an open-source TypeScript library that translates a word between English and 14 other languages. It reads English Wiktionary, so it needs no API key and costs nothing to run. I built it to replace the dictionaries behind Ludus Language's app. Since I published it in October 2025, it has been downloaded 1,788 times on npm.

Role
Solo builder
Built for
Ludus Language
Stack
TypeScript
Downloads
1,788 on npm

wikiglot on npmSource on GitHub

Downloaded dictionaries didn't scale

I was the founding engineer at Ludus Language. When I joined, the app looked up words in dictionaries that had been downloaded by hand. A separate service on Railway hosted them, and it billed every month. The files were static, so each new language meant finding and downloading another dictionary. They were also hard to search.

Wikiglot replaced that service. It looks a word up on Wiktionary when the app asks for it, so there are no files to host or update. After Ludus switched, hosting costs fell by half, search accuracy rose by 30%, and the app gained 11 languages.

Wiktionary already has the translations

Most English Wiktionary entries end with a table of translations, written by volunteers. Wikiglot fetches the page through the MediaWiki API, parses those tables, and groups the results by word type, like noun or verb. It also pulls the pronunciation.

Because volunteers write the tables, the results carry their quirks. Ask for “love” in Latin, and the first result is nulli, “zero,” from the tennis score.

Typing without accents still works

Most people don't type accents, and Wiktionary titles are exact. If a lookup finds no translations, Wikiglot searches Wiktionary for the word. It keeps the result that matches once accents are ignored, prefers the accented spelling, and tries again.

The result says what you searched for and what Wikiglot found, so an app can show the correction instead of hiding it.

New scripts, then Latin

Arabic, Chinese, Japanese, and Korean pages are laid out differently from the languages that use the Latin alphabet, so they needed their own parsers. Wikiglot also returns a romanization for each of them, and you can search by romanization, like annyeonghaseyo.

Latin came last. A Latin word is learned with its forms, not alone, so Wikiglot returns them: a verb's principal parts, a noun's genitive and gender, and an adjective's three genders. “Love” as a noun gives amor, genitive amōris, masculine. Getting from the first release to Latin took nine releases, from October 3 to October 28, 2025.