Skip to content

Repository files navigation

Bee's Ultimate Grammar Dictionary

13 Grammar Dictionaries in one image

Install

  1. Download the dictionary ZIP
  2. In Yomitan settings, go to Dictionaries → Import
  3. Select the downloaded ZIP

You can also browse the grammar library or use the English website. Every dictionary entry links to its page, with all contributing explanations and examples. Search by grammar, reading or meaning, and filter by JLPT level or source.

The English Yomitan edition is separately installable. Monolingual explanations and untranslated examples are translated with GPT-6 Luna and labelled as translations. Source-authored English is retained. The English website includes the original source text for reference.

What's included

Every grammar point shows a compact card with progressive disclosure — click to expand per-source details, extra examples, and provenance.

Sources

Source Name Language Description
DoJG 日本語文法辞典(全集) EN Dictionary of Japanese Grammar (Basic/Intermediate/Advanced)
HJGP 日本語文型辞典 JA A Handbook of Japanese Grammar Patterns — monolingual
HJGP EN 日本語文型辞典 英語版 EN A Handbook of Japanese Grammar Patterns — English edition
NINJAL 日本語文型データベース JA National Institute for Japanese Language and Linguistics grammar pattern database
日本語NET JLPT文法解説まとめ JA JLPT grammar explanations from nihongokyoshi-net.com
絵でわかる 絵でわかる日本語 JA Japanese grammar explained through illustrations
Donna Toki どんなときどう使う 日本語表現文型辞典 EN/JA "When and How to Use" expression pattern dictionary
日本語教師 毎日のんびり日本語教師 JA/ZH Grammar explanations for Japanese teachers
Bunpro Bunpro Grammar Reference EN SRS-based grammar reference
文法 文法 JA Personal grammar Anki deck
IMABI IMABI EN Comprehensive Japanese grammar lessons (modern + classical)
Yokubi Yokubi EN The Common Grammar Guide (yoku.bi)
AIUEO AIUEO JLPT Grammar EN/JA 761 grammar records with 3,805 bilingual examples from the AIUEO Anki deck

What makes this different from installing them separately?

  • Single lookup: one dictionary, one card per grammar point — not 13 separate popups
  • Merged entries: when multiple sources describe the same grammar point, their contributions are merged into one card with per-source attribution
  • Deduplication: the keymap stage aligns entries across sources so you don't see the same point repeated
  • Progressive disclosure: compact by default, expand any source's details on demand

Building from source

python3 -m venv .venv
source .venv/bin/activate
pip install . pytest
make all

The pipeline stages:

  1. extract — read each source's locked data into normalized GrammarPoint records
  2. keymap — align entries across sources (which rows are the same grammar point?)
  3. merge — combine aligned entries into a unified dataset
  4. build — render the Yomitan dictionary ZIP
  5. validate — verify against Yomitan's JSON schemas

Website and English edition

The committed publication snapshot makes both websites and dictionary downloads reproducible without local source decks, network scraping, or model credentials:

make site
python3 -m http.server 8000 --directory build/site

Open http://localhost:8000/ or http://localhost:8000/en/. GitHub Actions builds this snapshot and deploys it to GitHub Pages on main. See the publishing workflow for updating the corpus and translations.

After acquiring all locked sources and running make all, update the publication:

make translate-english  # authenticated Codex CLI; explicitly uses gpt-6-luna
make publish-data      # refuses missing sources or translations
make site

Translation results are cached by source-text hash under data/translations/. The original corpus stays unchanged. A changed source text requires a fresh translation; an incomplete English edition fails the build.

Adding a new source

  1. Place source data in data/sources/<name>/ with a SOURCE.lock.json
  2. Write an extractor in src/bugd/sources/<name>.py (see existing extractors for patterns)
  3. Register it with @register_extractor
  4. Add to SOURCE_PRECEDENCE in keymap.py and _SOURCE_EXPLANATION_LANG in banks.py
  5. Run make all

License

Dictionary content retains its original licensing from each source. The build pipeline code is MIT.

About

Bee's Ultimate Grammar Dictionary — ONE unified Yomitan Japanese grammar dictionary merging ten grammar sources with per-source attribution. Public release ships the CC BY 4.0 sources (NINJAL + Yokubi); build the full ten-source dictionary locally.

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages