- Python 100%
| 파일 이름 | 최신 커밋 메시지 | 최근 커밋 날짜 |
|---|---|---|
Tags were <data date>-<hash>. Every release so far shared the same data date, so GitHub listed them in hash order and the newest wasn't on top. Tag releases v<UTC build date>.<run number> instead (e.g. v2026.10.22.14), which GitHub orders by version. The hash of sources, config and code moves to a new 'tinydict fingerprint' command; release notes record it, and the weekly job skips the build when the latest release already has it. |
||
| .github/workflows | ||
| src/tinydict | ||
| tests | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| dictionaries.toml | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Tinyrack Dictionary
Offline dictionaries built automatically from open data:
- Wiktionary data published by kaikki.org (extracted with Wiktextract)
- 한국어기초사전 (Basic Korean Dictionary) by 국립국어원 (National Institute of Korean Language)
A scheduled GitHub Actions workflow checks the sources every week. When the data changes, it rebuilds the dictionaries and publishes them as a GitHub release.
Dictionaries
| ID | Name | Contents |
|---|---|---|
wiktionary-en |
Wiktionary English | English-English. About 1.5M entries with definitions, examples, IPA, part of speech, usage tags, inflections, etymology, synonyms and antonyms |
wiktionary-en-ko |
Wiktionary 영한 | English-Korean. Korean glosses and examples from Korean Wiktionary, plus Korean translations from English Wiktionary. About 33K headwords |
krdict-ko-en |
한국어기초사전 한영 | Korean-English. About 57K entries from the Basic Korean Dictionary: Korean definitions with hand-written English translations, pronunciation, Hanja origin, vocabulary level, sentence and dialogue examples, and related words |
krdict-en-ko |
한국어기초사전 영한 | English-Korean, built by reversing krdict-ko-en. About 49K English words and phrases, each listing the Korean words translated by it (basic vocabulary first) with their English sense and Korean definition. Results link to krdict-ko-en, so install both |
You can look up a word by its inflected forms too. For example, went finds
go, and 먹어 finds 먹다. Korean homonyms are separate entries; search
the bare word (배) to see all of them, or a numbered form (배²) for one.
Download
Get the latest files from
Releases. Releases
are named by build date (v2026.10.22.14) and listed newest first. Each file
also has a permanent link to its latest version, e.g.
https://github.com/tinyrack-net/dictionary/releases/latest/download/krdict-ko-en.slob.
Every dictionary comes in two formats with the same entries:
| File | Format | Use with |
|---|---|---|
<id>.slob |
slob (Aard 2) | Android: OSS-Dict, Aard 2. Also GoldenDict-ng |
<id>-stardict.zip |
StarDict | Desktop: GoldenDict-ng. E-readers: KOReader |
A .slob is a single file that apps read in place. Each -stardict.zip
contains one folder:
wiktionary-en/
├─ wiktionary-en.ifo dictionary info
├─ wiktionary-en.idx index
├─ wiktionary-en.dict.dz compressed definitions
├─ wiktionary-en.syn inflected forms and alternate keys
└─ README.txt sources and license
manifest.json in each release lists the entry counts, source dump dates and
SHA-256 checksums.
Both formats are written by PyGlossary's standard writers, so each follows its
own format's conventions. For example, links between entries use bword:// in
StarDict and plain links in slob, the form each target app expects.
Using the dictionaries
| Platform | App | File | How |
|---|---|---|---|
| Android | OSS-Dict (Play Store, F-Droid) or Aard 2 | .slob |
In the Dictionaries tab, tap + and pick the .slob file |
| Windows / macOS / Linux | GoldenDict-ng | -stardict.zip |
Unzip into a folder, then add the folder under Edit → Dictionaries → Sources → Files and enable Recursive |
| E-readers | KOReader | -stardict.zip |
Copy the unzipped folder to koreader/data/dict/ |
OSS-Dict can also open the StarDict zip, but use the slob there. The app follows slob links natively and reads the file without unpacking about 1 GB into app storage.
To see English definitions and Korean translations for the same word, turn on both dictionaries. Most apps then show the results together.
Building locally
Requirements: uv and about 5 GB of free disk space.
uv sync
uv run tinydict fetch # download source data to .cache/ (skips unchanged files)
uv run tinydict build # build, verify and package all dictionaries into dist/
uv run tinydict build wiktionary-en-ko # build one dictionary
The English dump is about 520 MB compressed. A full build of both formats takes about 10 minutes.
| Command | What it does |
|---|---|
tinydict fetch [ids...] |
Downloads source data into .cache/sources/<source>/ and records its ETag and dump dates |
tinydict fetch --metadata-only |
Refreshes metadata without downloading the data |
tinydict build [ids...] |
Builds each dictionary as StarDict, converts it to the other formats, checks every format, then writes release files and manifest.json to dist/ |
tinydict fingerprint |
Prints a hash of source versions, config, code and locked dependencies. Release notes record it, and the weekly job skips the build when the latest release already has it |
tinydict release-notes |
Prints Markdown release notes from dist/manifest.json |
Adding a dictionary
Dictionaries are defined in dictionaries.toml.
[sources.enwiktionary-ja] # https://kaikki.org/dictionary/Japanese/
edition = "dictionary" # "dictionary" = English Wiktionary,
language = "Japanese" # "kowiktionary" = Korean Wiktionary, ...
[[dictionaries]]
id = "wiktionary-ja"
name = "Wiktionary Japanese-English"
builder = "wiktextract"
sources = ["enwiktionary-ja"]
min_entries = 100_000 # the build fails if there are fewer entries
checks = [ # sample lookups that must pass
{ query = "食べた", headword = "食べる" },
{ query = "辞書", contains = "dictionary" },
]
formats = ["stardict", "slob"] # optional; this is the default
Builders:
wiktextract: one source. Uses PyGlossary's Wiktextract reader after removing junk inflection forms and fields the reader doesn't use.bilingual: translations from one source intarget_lang, optionally combined with glosses from a Wiktionary edition written in the target language. Options aretarget_lang,translations_sourceandglosses_source.krdict: onetype = "krdict"source. Each 한국어기초사전 sense comes with translations in 11 languages.target_langpicks the one to show ("영어","일본어","중국어","프랑스어","스페인어", ...), so a Korean-Japanese dictionary is just another config entry.krdict-reverse: the same source turned around. Thetarget_langtranslation terms of each sense (eat; have; consume) become headwords listing the Korean entries that use them. Parenthesised context and long proverb paraphrases are left out. Results link to the Korean headword, so the matchingkrdictdictionary should be installed alongside.
Builders always produce StarDict. Other formats are converted from it with PyGlossary's standard writers, so builders don't need format-specific code.
A build fails, and nothing is released, if any check fails in any format or the
entry count is below min_entries.
Releases
.github/workflows/release.yml runs every
Monday and can also be started by hand. It:
- Reads the source metadata and computes the release tag.
- Stops if a release with that tag already exists. Running it by hand with
forceskips this check. - Otherwise it downloads the data, builds and verifies the dictionaries, and
publishes the zips and
manifest.jsonto a release.
License
-
Code: GPL-3.0-or-later.
-
Dictionary data:
- Wiktionary dictionaries: written by Wiktionary contributors, licensed under CC BY-SA 4.0 and the GFDL.
- 한국어기초사전: © 국립국어원, licensed under CC BY-SA 2.0 KR. Only text is used. NIKL's pronunciation audio, images and video have separate terms and are not included.
Every released zip includes a
README.txt, and every slob includes license tags and a description, with the source and license notice. If you share modified dictionaries, use the same license.