Skip to content

Card scoring and selection

When AutoMiner mines a source, it turns subtitle lines into candidates, scores each one, keeps the best few sentences for each word, and picks one Gold card per word. This page explains each step, every setting that changes it, and what happens when you change a setting.

A few terms:

  • Source: one video, episode or podcast you watched or listened to.
  • Candidate: one possible card: a word you don’t know yet, in one sentence from one source.
  • Target word: the word a candidate teaches. It is the bold word in the sentence.
  • Gold (金 in the Japanese UI): the candidate AutoMiner plans to send to Anki for that word. Gold cards show a ★.
  • Mining score: the score this page describes, shown as ¶ and a percentage. It is separate from the clip score (✂), which rates how well the audio clip is cut. See Reviewing cards.

Most of the settings below are in Settings › Cards. The card filters and the score deductions sit under that section’s Advanced row. The Gold settings are in Settings › Clips › Gold cards.

For each source, mining goes through these steps in order.

  1. Pick the lines. Mining reads the lines you watched, or the whole source, depending on the platform’s mining mode. Some lines are never mined:
    • lines you excluded with NG in the Queue (listed on the Verifier page under Excluded lines),
    • lines longer than 200 characters. This limit is fixed.
  2. Apply the line filters. Shortest sentence and the Unfinished sentence filter drop lines before any word is looked at. See Card filters.
  3. Find the target words. Every word in the line that is not in your known words is a possible target. Your known words come from Anki. The word filters (Shortest word, Skip counters and Restore katakana fragments) apply here.
  4. Grade sentence quality. The judge grades each line, or the fallback rules apply. See Who grades sentence quality.
  5. Score every candidate. See The score.
  6. Drop what is filtered or repeated. Candidates whose target word is caught by Skip katakana-only or the Frequency filter are dropped. So is a second candidate with the same sentence for the same word.
  7. Keep the best sentences per word. Candidates are taken in score order, highest first. Each word keeps at most Candidate options limit sentences in one source. See The options limit.
  8. Choose Gold. See How Gold is chosen.

A candidate’s mining score starts at 100%. Each deduction that applies takes its percentage off. The score never goes below 0%. It is kept to one decimal place: the score breakdown shows that, and the ¶ mark on a card rounds it to a whole percent.

The deductions come in two groups: Statistics (counted from the sentence) and Sentence quality (graded by the judge, or by the fallback rules).

Deduction Setting Default When it applies
2–3 unknown words Unknown words, first box (2–3) 40% The sentence has 2 or 3 words you don’t know.
4+ unknown words Unknown words, second box (4+) 60% The sentence has 4 or more words you don’t know.
Rare word Rare word 10% The target word is rare. The rarer it is, the more it loses. See the table below.
Name Proper nouns (people, places) 15% The target word is a name: a person or a place.

A sentence with exactly one unknown word (i+1) loses nothing for unknown words.

A sentence with no unknown words at all loses a fixed 100%, so it scores 0%. This happens after you learn the target word: AutoMiner re-reads your known words from Anki and recounts every candidate. You can’t change this deduction. The score breakdown shows it as No unknown words.

Rare word uses the target word’s frequency rank from your dictionaries. Ranks up to 500 lose nothing. Ranks of 20,000 and beyond lose the whole deduction. In between, the deduction grows with the logarithm of the rank. With the default 10%:

Frequency rank Deduction
500 or more common 0%
1,000 1.9%
2,000 3.8%
about 3,160 5.0%
5,000 6.2%
10,000 8.1%
20,000 or rarer 10%

A word with no frequency rank (no frequency dictionary knows it, or the dictionary could not be read) loses nothing for rarity.

Deduction Setting Default With the judge With the fallback
Run-on Run-on 15% The judge says several sentences or clauses are glued into one line. Never applies.
Sentence length Sentence length 15% The judge says the sentence is too long for one card. The breakdown calls this Too long. The sentence’s length is outside the Sentence length range (too short or too long).
Fragment Fragment 20% The judge says the line does not stand on its own. A short complete answer or exclamation passes. The line has no predicate.
Garbled Garbled 30% The judge says the text is broken: misheard speech, mojibake or repeated junk. Never applies.

The Sentence length range is under the collapsed Fallback section:

Setting Default What it does
Sentence length min 6 A shorter sentence takes the Sentence length deduction. It is not a filter: the sentence stays a candidate.
Sentence length max 60 A longer sentence takes the Sentence length deduction. If you set it below the minimum, every sentence is deducted.

Length is counted in characters. With Don’t count symbols on, only letters count: no punctuation, brackets, symbols, spaces or digits. For example, 「えっ…ホント!?」 counts as 5.

Each deduction is a box that takes 0 to 100. Leave a box blank to use the default. Enter 0 to switch that deduction off. Each row’s Default button clears its boxes, and Reset all to default clears every deduction.

Example with the defaults: a sentence with 2 unknown words (−40%) whose target word has rank 10,000 (−8.1%), graded clean by the judge, scores 51.9%.

The Instant fail list sits above the deductions. Press + to open Instant-fail items. It lists every deduction in two groups, Statistics and Sentence quality. Tick the ones you want, then press Apply. Each one you add shows as a chip with a ×, which removes it.

An item on this list works differently from a deduction:

  • A candidate it applies to scores 0% and never becomes Gold.
  • The candidate is not deleted. It stays in the source’s word list, so removing the item gives the score back.
  • The item leaves the percentage table. It no longer takes a partial deduction.
  • Rare word fails instantly only for the rarest words: rank 20,000 and beyond, where the whole deduction would apply. A commoner word then loses nothing for rarity.
  • A quality item fails on the judge’s verdict, or on the fallback rule when the fallback graded the sentence.

The editor’s score breakdown names the items that failed in an Instant fail row.

Some things are judged elsewhere and take nothing off the mining score:

  • the clip score (✂), which decides Gold and auto-send through the clip rules (see How Gold is chosen),
  • the card filters, which drop a line or word before it is scored,
  • song lyrics, quiet clips and clips buried under music, which are clip rules for Gold.

The switch is Judge with Jev, in the Sentence quality part of the deductions. It is on by default.

Despite its name, the switch asks whichever judge you chose in Settings › Services › Judge service: This machine (the local judge, which runs on the computer that runs AutoMiner) or Jev (the hosted judge, which needs an API key). For every new line it mines, the judge answers pass or fail on each of the four quality items. Each fail takes that item’s percentage.

The fallback rules grade a whole mining run instead when:

  • the switch is off,
  • the judge is not ready, for example the local judge’s model is not downloaded yet (without a Jev key, AutoMiner always uses the local judge),
  • or a call to the judge fails during that run.

AutoMiner keeps every verdict per sentence. Mining the same sentence again, in this source or another, uses the kept verdict and asks the judge nothing.

To see which one graded a card, open it in the editor and press the ? beside the word (Score breakdown). Its Sentence quality row says This machine, Jev or Fallback.

Saving the switch rescores every candidate not yet sent to Anki (see Rescoring). The rescore asks the judge nothing. With the switch on, a candidate the judge graded when it was mined uses that verdict, and one the fallback graded keeps the fallback until its source is mined again. With the switch off, every unsent candidate uses the fallback.

Card filters remove lines or words before a candidate exists. They are all off by default. They apply from the next time a source is mined; candidates that already exist stay.

Setting Where What it does
Frequency filter Cards › Advanced › Card filters No candidate for a word rarer than this rank. Example: 75000 skips words ranked past 75,000. A word with no known rank (Yomitan down, no frequency dictionary) is kept. Blank or 0 is off.
Shortest sentence Cards › Advanced › Card filters Drops lines shorter than this many characters, such as はい。 or あっ. Blank or 0 is off.
Shortest word Cards › Advanced › Card filters No candidate when the target word is shorter than this. The line’s next unknown word becomes the target instead; if there is none, the line gives no candidate. Blank or 0 is off.
Don’t count symbols Cards › Advanced › Card filters Shortest sentence and the Sentence length range count letters only.
Unfinished sentence filter Cards › Advanced › Card filters Drops lines cut off mid-clause, such as lines ending in 〜して, 〜けど or 〜かもしれ. A line ending in 。 is never dropped. YouTube only, Stremio only and Spotify only override it for one platform; Use the shared setting follows the main switch.
Skip katakana-only Settings › Languages, Japanese tab Skips target words written only in katakana, such as タイム or ドキドキ. Your known words are the main way to stop words; this is an extra net.
Skip counters Settings › Languages, Japanese tab A counter right after a number (「3ヶ月」「三年前」) is never the target. The sentence stays, and the target moves to another unknown word.
Restore katakana fragments Settings › Languages, Japanese tab Not a filter. When katakana continues on either side of a katakana target, the whole run becomes the target (デウス becomes ルーデウス). The new target still goes through the known-word check.
Subtitle filter Settings › Subtitles › Advanced Regular expressions, one per line. When subtitles are read, matching text is removed, and a subtitle left empty is dropped. It applies the next time subtitles are read.

The duplicate range (Settings › Cards › Words already in Anki › Duplicate search range) also decides which words become candidates. Saving it mines every source again.

Candidate options limit (Settings › Cards) is how many sentences each word keeps in one source. The default is 5. Leave it blank or enter 0 to keep every sentence of a word.

  • The best-scoring sentences are kept.
  • The limit is per word per source. The same word in another source has its own sentences.
  • Raising the limit adds the missing sentences in every source right away.
  • Lowering it applies to sentences mined from then on. Candidates that already exist stay.

These sentences are what you see on the editor’s Sentences tab, where you can choose another one for the card.

Each word gets at most one Gold card per source: its best eligible sentence. There is no cap on how many Gold cards a source has. How many go to Anki each day is set by auto-send in Settings › Send.

A candidate can’t become Gold when:

  • its target word is a name (a proper noun), whatever the Name deduction is set to,
  • it has no unknown words left,
  • an instant-fail item applies to it,
  • its score is below Lowest score for Gold (Settings › Clips › Gold cards),
  • its target word appears only inside an annotation in the line, such as text in brackets,
  • it fails a clip rule for Gold (below),
  • an automatic send of it or its word was refused, for example because the word already has a note in Anki. It is tried again after AutoMiner reads Anki again.

The Clip rules for Gold are in Settings › Clips:

Setting Default Effect on Gold
Clip score at or above “Send threshold” Off On: only clips whose clip score reaches the Send threshold become Gold. A clip that is not scored yet waits; it is not Gold until it is scored and passes.
Send threshold 95% The bar for the rule above, and for what auto-send sends. Accepts 50–100%.
Quiet clips 10 dB A clip more than this many dB quieter than the source’s typical clip is never Gold. Blank or 0 is off.
Clips buried under music Standard (75%) A clip whose voice is buried under music is never Gold. It needs a voice separation service to measure.

A line marked as a song lyric is never Gold either. Clips: cutting, trimming and scoring explains the clip score, loudness and the music check.

Lowest score for Gold is a percentage. Blank means no minimum. It can be overridden per platform under its Advanced row (Override “Lowest score for Gold”). When words are held back by it and the Queue’s Send list is empty, the Queue says how many and gives the best score among them.

Among a word’s eligible sentences in one source, AutoMiner prefers, in order:

  1. the sentence you chose for the card yourself (with Use this),
  2. a sentence whose clip passes the clip rules, over one still waiting for its clip score,
  3. the sentence that is already Gold, so Gold does not jump around without reason,
  4. the higher mining score,
  5. the higher clip score.

One subtitle line gives Gold to only one word. When two words would both take the same line, the word picked first keeps it and the other word takes its next-best line. Words that have at least one sentence with a passing clip are picked first, then words with higher scores.

Gold is picked again often, but never for a word that you have already acted on in that source:

  • a card of that word in this source that is in Anki, or being sent,
  • a card you approved,
  • a Gold card you edited.

Those words keep their card. AutoMiner does not add a second Gold card for them.

AutoMiner picks Gold again for a source:

  • after the source is mined,
  • after a clip of the source is cut or re-cut, and scored,
  • after a rescore (any of the settings in Rescoring),
  • when you save Lowest score for Gold,
  • when you save a clip rule for Gold or the Send threshold. These changes re-rank every word from scratch, so a word can move back to an earlier sentence. Turning a rule off, or making it looser, brings back the Gold cards it held back.
  • when you change Duplicate handling in Settings › Send,
  • when you change a card’s word in the editor.

Saving any of these settings rescores every candidate that has not been sent to Anki:

  • any score deduction, including a Default reset,
  • the Instant fail list,
  • Sentence length min and Sentence length max,
  • Don’t count symbols,
  • Judge with Jev.

The rescore runs in the background as a job named Rescore candidates. It recomputes each score from what was recorded when the sentence was mined, so it does not mine again or ask the judge anything. When it finishes, Gold is picked again in every source and any sends that became due are queued.

A card already sent to Anki keeps the score it was sent with.

Other settings act differently:

Setting What saving it does
Frequency filter, Shortest sentence, Unfinished sentence filter, Skip katakana-only Nothing right away. They apply from the next mine.
Shortest word, Skip counters, Restore katakana fragments Queues Recount i+N: the unknown words in every candidate are counted again, which updates the unknown-word deductions, and Gold is picked again. New targets come from the next mine.
Candidate options limit Raising it adds missing sentences to every source.
Lowest score for Gold Picks Gold again in every source. Scores don’t change.
Clip rules for Gold, Send threshold Re-checks every Gold card against the rules and picks Gold again from scratch. The status line under the setting says how many cards moved.
Duplicate search range Mines every source again.

Your known words change scores too. Each time AutoMiner reads Anki again, it recounts the unknown words in every candidate and updates the unknown-word deductions.

  • A source’s word list (Sources): the Mining score column (¶), with i+N and Gold beside it. The Sort filter has Score, which puts the best candidates first.
  • The editor: the ? beside the word opens Score breakdown. It lists each deduction taken (for example 2–3 unknown words −40%), the Instant fail items, Sentence quality (This machine, Jev or Fallback) and the total Score.
  • Audit › Clips: the Mining score column, and the search term prop:score>90 to find candidates above a score.

See also Reviewing cards for the daily workflow, and The pages for a short reference to every page.