You’ve been studying Japanese for a while now and reached a level of Japanese adequate enough to understand (simple) texts. Drilling new vocabulary has become a daily routine so entangled in your lifestyle you barely notice anymore. If you were to describe your current level of proficiency, you’d proudly present yourself as an intermediate level learner. Sounds familiar? Let’s take it a notch further by adding Japanese definitions2 to our Anki-sets and reduce our dependency on English definition crutches!

If you’ve followed my previous tutorial on adding Japanese example sentences to your vocabulary cards, this tutorial will feel very similar: we’ll install an Anki add-on, alter our card-layout to display the definitions in a fashionable manner, and finally bulk-edit our existing cards to actually add them. (This might be my first tutorial worthy of the header quick).

Sanseido add-on

There are various online monolingual dictionaries for Japanese vocabulary. I personally like Weblio and Goo, but for our Anki cards we’ll use Sanseido - their definitions are usually more concise as the other dictionaries and tend to employ more comprehensable vocabulary. Luck has it someone has already written an anki add-on to serve our blog’s purpose. The result of our work will look as follows:

hwimportant center border


The Sanseido Definitions add-on has a page on Ankiweb’s plug-in page, but as usual we’ll install the plug-in using the Desktop Anki application. Go to ToolsAdd-onsBrowse & Install, and copypaste 1967553085 in the pop-up dialog. Restart the application to complete the installation.


The notetypes of the vocabulary you want Japanese definitions for will need a new field to contain the definition. On the desktop Anki application, press CTRL-SHIFT-N, or click ToolsManage Note Types, to enter the notetype management screen. Select the notetype of the cards you’d like to contain example sentences and click fields.

hwimportant center border

On the next screen, click add and call the field Sanseido. Now close this screen. On the previous notetype management screen, click cards. We’ll edit our lay-out and display the new field in our cards.

Anki Note Lay-out


Add below’s CSS code to the shared style screen of your note’s card-type template.

.title {font-size:16px; color: #999999;}


Add the following code below the line displaying your vocab’s translation/English definition (eg. {{Meaning}}) . You’ll do this in ExpressionBack Template, MeaningFront Template and AudioBack Template.

<br/><div id="japanese_meaning">
<span class= "title">Japanese:</span><br/> 
<span id= "japanese" class="sanseido">


Open anki’s browser (by pressing b or clicking Browse from the main window). The left of this browser has an overview of all your different sets and tags. Select the deck or tag containing the cards you’d like to edit. Press ctrl-a to select all of those and click EditRegenerate Sanseido Expression. It will crawl the internet for each new definition so this might take quite a while.3

hwimportant center border

Note: the plug-in expects your vocabulary to be contained in a field called Word. If your field is called Expression, you’ll have to edit this in the plug-in’s python file on your Anki’s add-on folder (eg. C:\Users\your_username\Documents\Anki\addons\ Open it with your text-editor of choice (notepad is fine) and change expressionField = 'Word' to expressionField = 'Expression'.

EDIT: as of July 2017, Sanseido’s domain changed from .net to .biz. As mentioned in the comments section, you’ll have to manually edit, search for and replace it with for it to work. Alternatively, replace the file with the one on my github repository linked below.

Usage with Rikaisama / Real Time Import

As with my previous tutorial, a drawback to this plug-in is that it does not support vocabulary formatted to use furigana, and neither can Japanese definitions be added automatically on adding a new note through rikaisama. We’ll have to make some small adjustments for that.

I’ve added the editted files on a new repository on my github so go ahead and replace the existing add-on files on your Anki’s add-on folder on your computer (eg. C:\Users\your_username\Documents\Anki\addons) with the ones on there. I’ve described all my edits below in case you’d prefer to do this manually. Feel free to skip this part if you’re not technically inclined.


We’ve set up our notes to show furigana on our vocabulary. This requires square brackets (eg. 気象庁[きしょうちょう]). The anki plug-in for Sanseido definitions however does not support this out of the box. For that reason, I’ve added a single line of code that uses a regular expression to only use the contents up to the first square bracket as expression.

term ='^[^\[]+',term).group(0)

If you’d like to edit this yourself, add below’s code as first line in the fetchDef class - it should be around line 27 (def fetchDef(term):).

This extension calls on Anki’s API to create new notes. I haven’t found a way to hook japanese_examples to outside note-creation, so instead I’ve editted the real_time_import plug-in itself to call japanese_examples at run-time.

First, we’ll have to import that extension to be able to call it’s methods. If you’re doing this set-up manually, add below’s line near the top, with the other includes (around line 30).

from sanseidoDefsForAnki import *

Next, I’ve written a few lines in the createNote method to call sanseidoDefsForAnki’s glossNote method at run-time and, if examples were found and our note-type has the correct destination field, add these to our newly created card. This should come before dupOrEmpty = note.dupeOrEmpty() around line 100.

# Create sanseido definitions
try: glossNote( note )
    showTooltip("Error, could not create sanseido definition.");
try: note.flush()
    showTooltip("Error, could not create sanseido definition.");

Contextualizing imported cards

If you’ve followed above steps, every time you add a new word online by pressing r (the Real-Time Import key) while hovering over something Japanese, it’ll automatically contain a Sanseido dictionary definition as well.

Try it out on below’s “Words of the Day“™!

逆転(ぎゃくてん) | 裁判(さいばん)

Download Example Set

As usual, I’ve exported my own anki copy of this tutorial and uploaded it in case you’d like to compare or save yourself the work of editting the note template yourself. It includes work from the previous two tutorials.

Wait! There is more!

The main goal of this post was to introduce another less known, but highly useful, Anki functionality on increasing your study efficiency, as well as hopefully create an attitude of self-reliability by reaching out various tools and possibilities. If you’ve any further questions, feel free to check out the other articles in this series on Anki, or to leave a comment below.

  1. Image taken from the 2012 Japanese animated film Wolf Children by Mamoru Hosoda, used under Fair Use doctrine. 

  2. Google Anki JJ and you’ll come across dozens of posts describing the “leap from the J-E to J-J dictionary”. It appears to be one of the more popular studying methods amongst self learners online, and is highly blogged about on such blogs as or on the forums. 

  3. it takes a couple of seconds for one card. At time of writing, I had 20761 cards based on the Rikai note type; parsing these took about an hour and a half.