Skip to content

Dictionaries and Yomitan

AutoMiner does not ship its own dictionary data. It asks Yomitan, the popup dictionary, for everything a card needs from a dictionary. You can let AutoMiner run Yomitan for you (the built-in Yomitan), or point it at the Yomitan in your own browser through the Yomitan API. On top of either, you can import local dictionaries: Yomitan-format .zip files that AutoMiner keeps in its own database, per language.

This page covers what Yomitan gives a card, how to set up each kind of dictionary, word audio, and what to do when cards come out without definitions.

A few terms used below:

  • Card: a sentence AutoMiner mined for one unknown word, waiting to be sent to Anki.
  • Headword: the word’s dictionary form (食べた → 食べる). AutoMiner uses it as the word’s key, so every card, known-word check and duplicate check talks about the same word.
  • Enrichment: the step that fills a card’s dictionary fields after mining.
  • Kiku: the Anki note type AutoMiner sends to by default.
Card part Where it comes from
Headword (Japanese) Yomitan’s lookup of the word as it appears in the line. Chinese and Korean words are keyed by AutoMiner’s own word splitter instead (see Languages).
Reading Japanese: the reading of Yomitan’s entry. Chinese: tone-marked pinyin. Korean: none.
MainDefinition, Glossary The dictionary entries Yomitan returns for the headword.
Frequency, FreqSort Yomitan’s frequency dictionaries. AutoMiner also uses the frequency rank for scoring and for the Frequency filter.
PitchPosition, PitchCategories Yomitan’s pitch-accent data, when one of its dictionaries has some. Empty otherwise.
ExpressionAudio Word audio, fetched from Yomitan when the card is sent.
Which note field gets what Yomitan’s card format for your note type (its Anki settings).

AutoMiner fills the rest itself: the sentence and its furigana, the sentence audio clip, the picture, the translation and MiscInfo. The full field list is in the README.

Yomitan is optional. Without any Yomitan and without local dictionaries, cards are still sent, with the dictionary fields empty.

Built-in Yomitan Your own Yomitan
What runs Yomitan’s own lookup code under Node.js, started by AutoMiner on the server The Yomitan extension in your browser, plus the Yomitan API helper
You install Node.js 22.13 or newer on the server (the Windows installer bundles it) Yomitan, the Yomitan API, and network access from the server to it
Dictionaries Added from AutoMiner (setup page or Settings › Languages) Whatever your Yomitan already has
Card format One format, for the Kiku note type Every card format in every Yomitan profile
Word audio sources Yomitan’s default audio settings; AutoMiner has no page to change them Your Yomitan’s audio settings
Must stay running Nothing; AutoMiner runs it Your browser with Yomitan

When AutoMiner starts, it decides once, in this order:

  1. If the server setting AUTOMINER_YOMITAN is 0, Yomitan is never asked and no word audio is fetched. Local dictionaries still fill in definitions.
  2. If a Yomitan API URL is set (in Settings or the AUTOMINER_YOMITAN_URL server setting), AutoMiner uses that address. The built-in Yomitan does not start.
  3. If something answers as a Yomitan API at http://127.0.0.1:19633 (a Yomitan API on the same machine as AutoMiner), AutoMiner uses it. The built-in Yomitan does not start.
  4. Otherwise AutoMiner starts the built-in Yomitan, if it is installed and Node.js is new enough.

The server setting AUTOMINER_YOMITAN_BUILTIN changes steps 3 and 4: 0 skips both, so only a Yomitan API URL you set is used; 1 skips step 3 and starts the built-in Yomitan even when a Yomitan API answers on 19633. The default is auto. Server settings are environment settings; see Configuration.

Because the choice happens at start, restart AutoMiner after you clear the Yomitan API URL or install Node.js, so it can start the built-in Yomitan.

  • Linux and macOS: install.sh installs Node.js from your package manager and downloads the pinned Yomitan release into yomitan/vendor. If it prints note: the built-in Yomitan needs Node.js 22.13+, install a newer Node.js. If it prints warning: Yomitan was not fetched, run yomitan/fetch_yomitan.py with AutoMiner’s Python later. See Installing.
  • Windows: the installer ships Node.js and the Yomitan files. See Installing on Windows.

It listens on a free port on 127.0.0.1, picked when it starts, so only programs on the server can reach it. Leave the Yomitan API URL blank.

Its files live in AUTOMINER_HOME/yomitan/ (by default ~/.local/share/autominer/yomitan/, /var/lib/autominer/yomitan/ when AutoMiner runs as root, and %LOCALAPPDATA%\AutoMiner\data\yomitan\ on Windows):

Path What it is
dictionaries/ The dictionary .zip files. Downloads and uploads land here.
options.json Yomitan’s own options: dictionary order, ON/OFF, card formats.
*.sqlite3 Yomitan’s imported dictionary database. This is the large part.
yomitan.log The built-in Yomitan’s own log.

The built-in Yomitan starts with no dictionaries and downloads nothing until you ask. Until it has a word dictionary, it answers no lookups.

You can add dictionaries from two places. Both have the same three buttons:

  • the setup page’s Dictionary (Yomitan) card, on a fresh install;
  • Settings › Languages, on your main language’s tab, under Yomitan dictionaries (marked Built-in). In Settings › Services, the Add dictionaries link next to the Yomitan API URL takes you there.
Button What it does
Download recommended dictionaries Downloads Yomitan’s recommended dictionaries for your main language, then imports every .zip in the folder. The hint beside the buttons (below them in Settings, above them on the setup page) lists them with their download sizes.
Import a .zip Uploads one Yomitan dictionary .zip (at most 512 MB) from your computer and imports it.
Import from folder Imports every .zip already in AUTOMINER_HOME/yomitan/dictionaries/. Use it for files you copied there yourself. The built-in Yomitan also does this each time it starts.

The recommended set is the first word dictionary and every frequency list that Yomitan recommends for the language. For the pinned Yomitan release that is:

Main language Downloaded
Japanese Jitendex, BCCWJ, JPDBv2㋕, Jiten
Chinese CC-CEDICT
Korean wty-ko-en

A download skips files that are already in the folder. Importing takes minutes for a large dictionary, and longer on a small board such as a Raspberry Pi. While it works, the status line shows Downloading: <name> <done> / <total> MB, then Importing: <name> <n>%. The buttons are disabled until it finishes.

While the built-in Yomitan downloads, imports or removes a dictionary, it answers no lookups. Cards mined meanwhile get definitions from your local dictionaries, or none, and are filled in properly by a later enrichment.

Each imported dictionary is one row with a checkbox, ↑ and ↓ and Delete:

  • Checkbox (Use <name>): an OFF dictionary is not looked up.
  • ↑ / ↓: definitions from dictionaries higher up come first.
  • Delete: asks Delete <name> from the built-in Yomitan? and also deletes its .zip from the folder.

A row shows its size as <n> words for a word dictionary or <n> frequencies for a frequency list. Import cut short marks an import that stopped halfway; the next import removes it (Removing an import that stopped halfway: <name>).

MainDefinition comes from one word dictionary. When the dictionary the card format names is missing (on first setup, or after you delete it), the built-in Yomitan points the field at your top enabled word dictionary. Moving dictionaries up or down does not change it by itself.

You see Meaning
✓ Built-in Yomitan: <list> Ready. The list is the dictionaries that are ON.
Built-in Yomitan: no dictionaries yet · no .zip in the folder Nothing added yet. Press Download recommended dictionaries or import a .zip.
Built-in Yomitan: no dictionaries yet There are .zip files in the folder but none is imported, for example because an import failed. Press Import from folder.
Built-in Yomitan: no word dictionary (<list>) Only frequency lists are in. Add a word dictionary.
Built-in Yomitan: every word dictionary is OFF Turn at least one word dictionary ON.
Could not add the dictionaries: <error> The last download or import failed. See Troubleshooting.
The built-in Yomitan is not running The buttons were pressed while it was stopped. See It did not start.
  • The built-in Yomitan is set up for the main language (the top one in Settings › Languages › Studied languages) at the moment AutoMiner started. Its dictionary list only shows on that language’s tab. If you change the main language, restart AutoMiner. For your other languages, use local dictionaries.
  • Its card format is for the Kiku note type. If a language sends to another note type, there is no card format for it, and AutoMiner sends with Kiku’s field names. If your note type’s fields are named differently, sending fails. Use your own Yomitan for a note type with its own card format.
  • If it crashes, AutoMiner logs a line starting [yomitan] the built-in Yomitan exited with the path of its log, and starts it again, at most once every five minutes.

Use this when you already have Yomitan set up in your browser with your dictionaries and an Anki card format.

  1. Install the Yomitan API on the computer with your browser: run its install_yomitan_api.py, then in Yomitan’s settings turn on advanced options and enable Enable Yomitan API under General. Yomitan starts the API when your browser starts, so keep that browser running while AutoMiner works.
  2. Make the API reachable from the AutoMiner server. By default it listens only on http://127.0.0.1:19633, which works only when AutoMiner runs on the same computer (and then AutoMiner finds it by itself, see How AutoMiner chooses). For a separate server, the Yomitan API’s README says to edit ADDR and PORT in yomitan_api.py.
  3. In AutoMiner, open Settings › Services. Under Service addresses, enter the address in Yomitan API URL, for example http://<your computer>:19633, and press Save changes (or Ctrl+S). On a fresh install you can enter it in the setup page’s Dictionary (Yomitan) card and press Save.
  4. Saving tests the address. The status line should read ✓ Connected · <url>. Press Test to check again later.

The server setting AUTOMINER_YOMITAN_URL wins over the Settings value. When it is set, the status line ends with · the server's setting wins.

AutoMiner reads the Anki card formats from every profile of your Yomitan. It uses the format whose note type matches the note type of the card’s language (Settings › Languages › Per-language settings). It reads them again at most every ten minutes when it enriches or sends cards, or when you press Reload in Settings › Send › Fields. While Yomitan is down, it keeps using the formats it read last.

When AutoMiner updates an existing note, it follows each field’s overwrite mode from the card format (such as “fill if empty”) for every field except the sentence and its furigana, the translation, the picture, the sentence and word audio and MiscInfo, and it never empties a field that has a value. Field mapping and sending are covered in Anki: setup, fields and sending.

The Yomitan API URL status line shows one of these. The setup page’s card shows shorter versions, such as Can't connect — cards are sent without dictionary definitions. While the built-in Yomitan runs, both show its status line instead.

You see Meaning
✓ Connected · <url> Working.
Can't connect: <url> — cards are sent as they are, without dictionary fields Yomitan does not answer and you have no local dictionaries.
Can't connect: <url> — definitions from local dictionaries (<list>) Yomitan does not answer. Cards get definitions from the local dictionaries listed.
Not set — no dictionary enrichment until a URL is saved (cards are sent without dictionary fields) No Yomitan at all.
Not set — definitions from local dictionaries (<list>) No Yomitan, but local dictionaries fill in.
Turned off by the server's setting AUTOMINER_YOMITAN=0.

The sidebar shows Yomitan under Services as Connected or Not reachable. Click it to see the address it uses and when it was last checked.

Local dictionaries are Yomitan-format .zip files that AutoMiner imports into its own database, separately for each language. Use them for:

  • a language your Yomitan has no dictionary for (for example Chinese or Korean beside a Japanese Yomitan);
  • a fallback while Yomitan is down.

They hold word entries and rank-based frequencies only. AutoMiner ignores pitch data, images in definitions, and kanji or hanzi (one character at a time) dictionaries. They never replace Yomitan’s headword for a Japanese word.

  1. Open Settings › Languages.
  2. Under Per-language settings, click the tab of the language the dictionary is for.
  3. Under Local dictionaries, in the row named after the tab (for example Import a Chinese dictionary), press Choose .zip and pick the file.
  4. Press Import. The status reads Importing… (large dictionaries take a few minutes), then Imported "<name>": <n> terms · <n> frequencies.

Where to get one:

Language Dictionary
Chinese CC-CEDICT (CC-CEDICT.zip)
Korean Wiktionary (kty-ko-en)
Japanese Any Yomitan dictionary, such as JMdict, Jitendex or a JPDB frequency list

Importing a dictionary with the same name as one you have replaces it with the new version. The old one keeps answering until the new one is fully in.

For Chinese, AutoMiner rewrites CC-CEDICT’s CL: notes as Measure word: …, in the same script (Simplified or Traditional) as the line. A local Chinese dictionary also helps AutoMiner split Chinese text into words; a local Korean dictionary helps it join compound nouns. See Languages.

Each language lists its local dictionaries with their size (<n> terms · <n> frequencies). Once a language has one, the list also has a Yomitan row (Yomitan API (the current profile's dictionaries)), which stands for all of Yomitan’s dictionaries. Use ↑ and ↓ to move any row, including Yomitan’s. The new order is saved at once (Order saved).

Position Effect
Above Yomitan If it has the word, its entry goes on the card, before Yomitan is asked.
Below Yomitan Used only while Yomitan is down or has no entry for the word. Its entry is provisional: once Yomitan answers, the next enrichment replaces it.

Delete removes a local dictionary at once, without asking.

AutoMiner skips entries whose reading belongs to another language: a Chinese word only takes entries with a pinyin or zhuyin reading, and a Korean word never takes an entry whose reading is in kana or Han characters. This keeps a Japanese dictionary from defining Chinese or Korean words.

AutoMiner ranks each word by frequency (1 = most common) and uses the rank in the sentence score and in the Frequency filter.

  • Sources are asked in the same order as for definitions (local dictionaries above the Yomitan row, then Yomitan, then the ones below). The first that ranks the word wins. For Japanese, once Yomitan has answered for the word, its answer stands even when it has no rank.
  • From Yomitan, the rank is the lowest among the rank-based frequency lists for the word’s best entry. From local dictionaries, it is the rank in the highest-placed dictionary that has the word.
  • Occurrence-based lists (raw counts) are not used for the rank, and a local import skips them.
  • For Chinese, a word without a rank as written is ranked by its Simplified spelling.
  • A word with no known rank is never dropped by the Frequency filter.

Settings › Cards › Advanced › Card filters › Frequency filter drops words rarer than the rank you enter (for example 75000). Blank or 0 is OFF, the default. It applies from the next mining. How the rank feeds the score is in Card scoring and selection.

PitchPosition and PitchCategories come only from Yomitan, and only when one of its dictionaries has pitch-accent data. The recommended download is one word dictionary plus frequency lists, so add a pitch-accent dictionary to Yomitan yourself if you want these fields. Local dictionaries never provide pitch accent.

AutoMiner fills ExpressionAudio when it sends the card, not when it mines it.

  1. It asks Yomitan for audio of the word (and the card’s reading). Yomitan gets it from its audio sources: your own Yomitan’s audio settings, or, for the built-in Yomitan, Yomitan’s default audio settings.

  2. If Yomitan has none, for Korean and Chinese it looks for a recording on Wikimedia Commons:

    Language Fallback
    Japanese none
    Chinese a Lingua Libre recording
    Korean a Lingua Libre or Wiktionary recording

    Recordings exist mostly for common words. The fallback is skipped for words with digits or punctuation, and recordings over 4 MB are ignored.

  3. The file is stored in Anki’s media and the field gets [sound:…].

If no audio is found, the card is still sent with the field empty, and the send records why, for example Yomitan has no audio for <word>, Yomitan does not answer, Yomitan is not set up or Wikimedia Commons has no recording of <word>.

AutoMiner does not overwrite word audio you put in the field yourself, or audio already on a note it merges into. There is no text-to-speech fallback.

In the card editor, an empty ExpressionAudio reads The word's audio is taken from Yomitan when sending, followed by (else a Wikimedia Commons recording) for Chinese and Korean.

Yomitan may be stopped, busy importing, or unreachable. AutoMiner keeps working:

  • Kept answers. AutoMiner stores every Yomitan answer in its database. When Yomitan does not answer, it reuses the stored answer for a word it has looked up before, so the word keeps its headword.
  • Local dictionaries fill in. Cards get a provisional definition from your local dictionaries. The next enrichment with Yomitan answering replaces it.
  • Cards still go out. A card with no definition is sent with empty dictionary fields. The one exception: a Japanese card whose word you typed or changed by hand while Yomitan was away. AutoMiner cannot check that word’s headword, so it refuses to send the card and sends nothing. Send it again once Yomitan answers.
  • Short pause. After a failed check, AutoMiner treats Yomitan as away for 60 seconds before asking again. Each request waits up to 5 seconds (AUTOMINER_YOMITAN_TIMEOUT).
Setting Where Default What it does
Yomitan API URL Settings › Services › Service addresses, or the setup page blank Address of your own Yomitan API. Blank: the built-in Yomitan or 127.0.0.1:19633.
AUTOMINER_YOMITAN_URL server setting blank Same as above; wins over the Settings value.
AUTOMINER_YOMITAN server setting on 0: Yomitan is never asked and no word audio is fetched; local dictionaries still work.
AUTOMINER_YOMITAN_BUILTIN server setting auto auto: use a Yomitan API on 19633 if one answers, else start the built-in one. 1: always start the built-in one. 0: neither; only a Yomitan API URL you set is used.
AUTOMINER_YOMITAN_TIMEOUT server setting 5 Seconds to wait for each Yomitan request.
Yomitan dictionaries Settings › Languages (main language’s tab) none The built-in Yomitan’s dictionaries, order and ON/OFF.
Local dictionaries Settings › Languages (each language’s tab) none AutoMiner’s own dictionaries per language, and their order against Yomitan.
Frequency filter Settings › Cards › Advanced › Card filters OFF Drops words rarer than this rank.
Note type per language Settings › Languages › Per-language settings Kiku Picks which Yomitan card format a language’s cards use.
  1. Look at Yomitan under Services in the sidebar. Not reachable means AutoMiner cannot reach any Yomitan.
  2. Open Settings › Services and read the Yomitan API URL status line (table above).
  3. Built-in Yomitan: open Settings › Languages and check that the Yomitan dictionaries status starts with ✓ Built-in Yomitan. If the list is missing, the built-in Yomitan is not running.
  4. A Chinese or Korean card needs a dictionary for that language: import a local dictionary on that language’s tab, or add one to your Yomitan.
  5. Definitions are filled by enrichment after mining. Cards mined while Yomitan was away get Yomitan’s entry at the next enrichment with Yomitan answering.
  • Your own Yomitan: is the browser with Yomitan open, and is Enable Yomitan API on? From the server, can you reach the address? A Yomitan API on its default 127.0.0.1 is not reachable from another machine. Press Test after fixing it.
  • Built-in Yomitan: it answers no lookups while it imports, downloads or removes a dictionary, and none until it has a word dictionary that is ON. Wait for the status line to return to ✓ Built-in Yomitan.
  • For your own Yomitan, autominer doctor --online also tries one lookup against the configured URL.

AutoMiner logs one line at start: [startup] built-in Yomitan: <reason>.

Reason Fix
started on http://127.0.0.1:<port> (data in <path>) It is running.
not needed: a Yomitan API URL is configured Clear the Yomitan API URL (and AUTOMINER_YOMITAN_URL), then restart.
not started: a Yomitan API answers at http://127.0.0.1:19633, used instead A Yomitan API on this machine is in use. Set AUTOMINER_YOMITAN_BUILTIN=1 if you want the built-in one anyway.
not installed The Yomitan files are missing. Run yomitan/fetch_yomitan.py with AutoMiner’s Python, then restart.
Node not found Install Node.js 22.13 or newer, then restart.
Node 22.13+ needed (found <version> at <path>) Upgrade Node.js, then restart.
off (AUTOMINER_YOMITAN_BUILTIN=0) Remove that setting, then restart.
off (AUTOMINER_YOMITAN=0: dictionary enrichment is off) Remove that setting, then restart.

If it started and later stopped, read AUTOMINER_HOME/yomitan/yomitan.log.

Message Fix
Not a .zip / Not a Yomitan dictionary (.zip) Pick the dictionary’s .zip, not an unpacked folder or another archive type.
No index.json (not a Yomitan dictionary) / Not a Yomitan dictionary: <error> The file is not in Yomitan’s format.
“<title>” is already in The built-in Yomitan already has a dictionary with that name. Delete it first to replace it.
The dictionary is too large (at most 512 MB) Built-in Yomitan uploads are limited to 512 MB. Copy the file into AUTOMINER_HOME/yomitan/dictionaries/ and press Import from folder.
Character (kanji/hanzi) dictionaries aren't used — import the term dictionary Local dictionaries take word dictionaries only.
The dictionary has no terms and no frequencies Nothing AutoMiner can use, for example an occurrence-based frequency list.
Pick the dictionary's language Open the right language’s tab before importing.
Could not add the dictionaries: <error> A download or import failed. Check the server’s internet access and disk space, then press the button again.

A language whose note type has no Yomitan card format is sent with Kiku’s field names. Either use the Kiku note type, or add a card format for your note type in your own Yomitan (the built-in Yomitan only has one for Kiku). Settings › Languages warns when a note type lacks a field AutoMiner writes.

Check the reason recorded on the send (see Word audio). For Japanese, word audio comes only from Yomitan’s audio sources. AutoMiner has no page to change the built-in Yomitan’s audio sources; to choose them, use your own Yomitan and set them in its audio settings. The Wikimedia Commons fallback for Chinese and Korean needs internet access from the server.