KanjiVocab - smart automatic vocab for RTK

AnkiWeb addon 1600796261

Adds Japanese vocabulary to kanji-writing cards using known words from other decks, prioritizing common words, hiding target kanji, and saving results in fields for syncing.
AI-generated summary; may contain mistakes.

card-creationnote-managementformattingmobile-compatible

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
8 (👍 8 · 👎 0)
Updated
2020-04-20
Anki versions
2.1.22~
License
AGPL-3.0 (from the headers of the Python files)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, CSS, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2020-04-20 (2386 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 3 open, 14 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 18 hours (9 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.202.1.22+2020-04-20
History across monthly snapshots

Loading…

Similar addons

WaniKani Vocab Sync

Syncs started WaniKani vocabulary into configurable Anki decks, creating English-meaning-to-Japanese cards with optional pronunciation audio.

card-creationsync-integration

1 votes 21% approval 👍 1 · 👎 0 ⭐ 1 Updated 2023-05-17

Description

This addon adds Japanese words to a kanji writing deck (such as Remembering The Kanji), using known words from other decks. It makes post-completion RTK reviews much more pleasant, and helps link all the new words you're learning with what you learned in RTK. The addon can add words to the question side with the target kanji hidden, to help decide which kanji to write. It tries to prioritise known words and common words, and avoid words that might suggest the wrong answer. It scans cards in other decks to determine which words are known. It gets the best results from vocab cards, particularly if they have vocab expression and reading fields. It can also scan sentence fields for the words within (this requires the Japanese Support addon). The results are saved into the kanji cards, so can be synced to non-desktop versions of Anki. Please post any questions or feedback to: https://github.com/HelenFoster/KanjiVocab/issues Version info Version: 5.0.0 License: AGPLv3+ ( https://www.gnu.org/licenses/agpl.html ) This addon includes a dictionary derived from the JMdict dictionary file. JMdict is property of the Electronic Dictionary Research and Development Group, and is used in conformance with the Group's licence. See http://www.edrdg.org/jmdict/j_jmdict.html Quick Start Always backup your collection before installing an addon that modifies it! Add fields to your kanji deck, named "KanjiVocabQuestion", "KanjiVocabAnswer" and "KanjiVocabExtra". Note: These were renamed to remove spaces (as spaces make searching etc more awkward). If updating, you can rename existing fields within Anki. Apologies for any inconvenience. Edit the card template. Add "KanjiVocabQuestion" to the front of the card, and the other two to the back of the card. They contain furigana, so use {{furigana:KanjiVocabQuestion}} etc. Then, to get the colours in the screenshots below, add the code from this link to the card CSS: https://github.com/HelenFoster/KanjiVocab/blob/master/kanjivocab/cards_example.css Restart Anki after installing the addon, and "KanjiVocab..." should appear on the Tools menu. This opens a dialog with the various options. More detailed instructions can be found at: https://github.com/HelenFoster/KanjiVocab/blob/v5.0.0/README.md Screenshots Words are coloured to help you decide how to use the information when reviewing. Some examples from my deck are shown below. The green highlight means "you should be able to read this in kanji" and the yellow highlight means "you should be able to read this in kana". Black text means "only one possible answer", purple text means "only one likely answer", and red text means "more than one likely answer" (with a pessimistic viewpoint, as the addon doesn't understand all the other cues on the card that help you pick one kanji over another). You can change this colour scheme at any time by editing the card CSS. Note: This addon only generates the Japanese words! My deck is heavily customized in other ways.

README

KanjiVocab - smart automatic vocab for RTK

Introduction

This Anki addon adds Japanese words to a kanji writing deck (such as Remembering The Kanji), using known words from other decks. It makes post-completion RTK reviews much more pleasant, and helps link all the new words you're learning with what you learned in RTK.

The addon can add words to the question side with the target kanji hidden, to help decide which kanji to write. It tries to prioritise known words and common words, and avoid words that might suggest the wrong answer. It scans cards in other decks to determine which words are known. It gets the best results from vocab cards, particularly if they have vocab expression and reading fields. It can also scan sentence fields for the words within (this requires the Japanese Support addon). The results are saved into the kanji cards, so can be synced to non-desktop versions of Anki.

AnkiWeb: https://ankiweb.net/shared/info/1600796261 (may be an older version).

Vocab card scanning is self-contained. Text scanning requires a recent version of the "Japanese Support" addon. See https://ankiweb.net/shared/info/3918629684

The Python code is licensed under the GNU AGPL, version 3 or later (the same as Anki itself). See http://www.gnu.org/licenses/agpl.html

This addon includes a dictionary derived from the JMdict dictionary file. JMdict is property of the Electronic Dictionary Research and Development Group, and is used in conformance with the Group's licence. See http://www.edrdg.org/jmdict/j_jmdict.html

Installation

This version is for Anki 2.1 only.

Always backup your collection before installing an addon that modifies it!

Copy the kanjivocab directory into the Anki addons21 directory.

Restart Anki, and "KanjiVocab..." should appear on the Tools menu. This opens a dialog with the various options.

Field Setup

Add fields to your kanji deck for the new information, named as follows:

  • "KanjiVocabQuestion" for the words with masked kanji (put this on the front of the card);
  • "KanjiVocabAnswer" for the answers to the questions (put this on the back of the card, ideally so that it appears in the same place as the question field);
  • "KanjiVocabExtra" for words which would have more than one likely answer (put this on the back of the card).

The above fields contain furigana, so add them using {{furigana:KanjiVocabQuestion}} etc.

Note: These were renamed to remove spaces (as spaces make searching etc more awkward). You can rename existing fields within Anki. Apologies for any inconvenience.

With each run of KanjiVocab, these fields will be overwritten and anything already in them will be lost. Notes with the tag "KanjiVocabFreeze" are left alone; but heavy use of this tag may create more work for you later. Consider putting hand-edited material into other fields instead.

CSS Setup

Add CSS to your kanji deck to style the words as you like. There is an example in cards_example.css (so just copy that unless you have a different idea). Each word will have exactly one of the following classes:

  • "kv_unique" for words with only one possible answer;
  • "kv_likely" for words with only one likely answer;
  • "kv_confuse" for words with more than one likely answer (by default these only appear as "extra" words).

Also, each word will have exactly one of the following classes (with the ones listed first being higher priority):

  • "kv_kanji_mature" for words where the kanji version is mature;
  • "kv_kanji_known" for words where the kanji version is known;
  • "kv_kana_mature" for words where the kana version is mature;
  • "kv_kana_known" for words where the kana version is known;
  • "kv_kanji_inactive" for words where the kanji version was scanned from a new or suspended card;
  • "kv_kana_inactive" for words where the kana version was scanned from a new or suspended card;
  • "kv_unknown" for words which were not scanned.

Since they are separated like this, it makes sense to use text styles for one set and background colour for the other.

Settings Dialog

In the "Cards to update" tab:

  • "Note type" is the note type you wish to add the words to.
  • "Kanji field" is the name of the field containing only the kanji character being tested (used to decide which words to add to the card).
  • "Dictionary words" allows words to be taken from the dictionary by frequency (based on JMdict priority tags), even if they did not appear in any scans.
  • "Questions" is the maximum number of words with masked kanji to add to each card.
  • "Extra answers" is the maximum number of extra words to add to each card.
  • "Allow ambiguous questions" lets you choose whether to allow questions with more than one likely answer. Even if not, they can still appear as "extra".
  • The "Fields to update" section shows whether the listed fields have been added correctly.

In the "Cards to scan" tab, each row can be set to a different scan:

  • "Note type" is the note type you wish to scan. A note type can appear more than once with different options.
  • "Scan type" can be "vocab" or "text". A vocab scan considers the expression and reading as-is (the reading is optional). A text scan splits the expression with MeCab (and does not use a reading).
  • The other drop-downs let you select the expression and reading fields for each scan.
  • The checkboxes let you choose whether each scan will consider new and suspended cards. Words from such cards will be prioritised above dictionary words, but not counted as "known".