Add sentences to Anki editor window in one click
Select a word in edit field and click add button to add sentences to that fields matching the words. Also create/add sentences for any languages. The sentences database created using tatoeba language tsv files. Download language tsv file from tatoeba.
Tutorials
Download Sentences data tsv files Create/Add Language database Add random sentence to edit field View list of all sentences Batch sentences adder
View more tutorials at Simple 中文
Sentences Database tatoeba
Note: If already created the sentences database then save a copy of lang_db and config.json folder from Anki2/addons21/1682655437/ into Anki2/addons21/1682655437/user_files/
Note: You have to download sentences tsv from tatoeba View tutorials below to download and add language to database.
Features
Create new language database Add random sentence in one click View list of all sentences matching the selected word Change language (Require restart of Anki to apply changes) Change color of sentences Add sentence pair (sentence and its translation) Wrap word and sentence in html tag
Install
Download Addon
Anki -> Tools -> Add-ons -> Get Add-ons…
Paste the code 1682655437 and install.
Restart Anki and open the Addon to add new languages. Download language of choice from tatoeba. Open the installed Addon in Anki
Anki -> Tools -> Sentence Adder…
Click Add new language Enter language name Select downloaded language tsv file Click create to create/add new language to the Addon Restart Anki to apply changes
Adding sentences to field in Anki
First change preferences for the Anddon There are two preferences a. Auto add sentences: Automatically add random sentences matching the words b. Open all sentences window: View list of all sentences and select as per choice from the list
Select any text in editor window
Click add button to add sentences
Demo Add Random Sentences Add random sentence to edit field
View all sentences View list of all sentences
Updates
Update 25-06-2024
Do not need to restart when adding database or changing config
Update 15-02-2024
Batch edit ui fixes Progress bar with note count changes
Update 30-01-2023
Batch edit ui fixes
Update 29-01-2023
Add sentence pair (sentence and its translation) Wrap word and sentence in html tag Bug fixes
Update 16-06-2022
Option to limit character length in sentences Option to auto add multiple sentences Option to remove language database Option to add different color for words and sentences Auto upgrade old config.json to new config Preserved generated database in user_files Bug fixes
(Before updating, save a copy of lang_db and config.json folder from Anki2/addons21/1682655437/ into Anki2/addons21/1682655437/user_files/)
Update 24-03-2021 Change options for sentences containing spaces. For example in English language there are spaces between words unlike Chinese language. So, update the addons with options Sentences contain space and change it to use. But before update, it is recommended to save a copy of lang_db and config.json folder from Anki2/1682655437/ and paste it to Anki2/1682655437/ after update.
View demo
Update 22-03-2021
Batch sentences adder
View Source Code Sentence Adder Anki Addon
Screenshots


Liên kết hỗ trợ
- Contact Author
- Download Sentences data tsv files
- Create/Add Language database
- Add random sentence to edit field
- View list of all sentences
Reviews (28)
👍 2025-10-16
Suddenly stop and doesn’t work anymore
👍 2025-04-15
Fantastic addition - tried a few different LLM solutions first but realized that a good ol’ sentence db works wonders.
For batch generation “word_color” error, I was able to find a solution in the issue comments of add-on’s Github repo. There are two simple modifications to the add-on files if you go to the Anki2 add-on folder and fix the files yourself.
- add load_config() to the bottom of editor.py
- comment out batch_edit.py#L127. For those unfarmiliar with python, you’ll want to change t
👍 2025-04-01
good add-on but It has suddenly stopped working. I redownloaded the language files, the add-on, and even anki Itself, but still no luck. It creates the language database (I can see It In the lang_db file) but when I go to pick the language, It doesnt show up. when I try deleting It (via the files because It doesnt show In the “remove language” either) and recreating It under different file names, It just tells me the language already exists. It definitely does not exist, especially after redownl
👍 2025-02-09
Manual sentence adder is perfect but batch editing is completely broken for me
👍 2024-11-12
As others noted, the manual sentence adder works great, but the batch adder returns an error of ‘word_color’ and requires Anki to be Force Quit. I wish there was a way to get the Tatoeba audios and sentence translations as well as the sentences. Most of all I wish I could choose the destination field for the sentence when doing single/manual sentence adding instead of it adding the sentence into the same field as the vocab word.
👍 2024-09-15
I’m convinced this is so instrumental, but I can’t add sentences because of ‘word_error’, as mentioned in the comment below. I think there is no mistake in my settings.
👍 2024-06-29
Sentence Batch adder not working. returns an error: “word_color” but i have set the color in config. Had to force close anki.
I did all the configs. everything is fine in single senetence, but in batch mode it returns an empty error. p.s. Greate work :) Comment from author before post was edited May be you have to check config of the addon.
👍 2024-06-21
Broken, unusable, crashes and breaks Anki. Never got it to work with my TL (Hindi)‘s sentences even after downloading and manipulating the tsv file I got from tatoeba. Comment from author I have updated the addon, please try again. I have tested with Hindi language and it working as expected.
👍 2024-04-01
I have an idea to remove the part of grabbing example sentences to practice maths questions. A maths theorem is paired with multiple practice problems (with answers) so that each time you do a different practice problem, you are sure to get good grades.
👍 2024-03-24
Good job
👍 2024-03-23
Extension looks great, and adding single sentences works for chinese when i select and manually click the sentence button, but when i attempted to use the bulk updater, the newly created “Sentence” field does not get updated and all are blank. Not sure what is going wrong.
Update: Think the problem is that the deck I am using (https://ankiweb.net/shared/info/1907668496) has html for the simplified field that is failing to get looked up: e.g. <span class=“cmn_tone2”>违</span><span class=“cmn_tone
👍 2024-02-27
Is it possible to add the example sentence to a specific field, such as “Sentences” and “Translated Sentences”? In batch edit it is possible to select the fields, but not when creating cards. This would be great. Comment from author In next update the feature will be available.
👍 2024-02-18
Good addon, but I’ve heard that tatoeba sentences are full of bad sentences with lots of errors.
👍 2024-02-15
Awesome. Comment from author before post was edited Development for this addon is started and many features, bug fixes will be released soon.
Edit: Try again with v1.0.6, now it shows progress bar instead of freezing.
👍 2024-02-15
A great addition. It is not enough just to add a definition of the word.
👍 2024-01-17
it crashes at app start Comment from author I have updated the addon, try again issues may be fixed now.
👍 2023-12-29
Love this.
👍 2023-11-22
The plugin is terrific!
btw, Anki always crashes when trying to use “Sentence Batch Adder” (but I’ve managed to fix that by modifying your code)
Anki 2.1.66 macOS 14.1 ARM-64
👍 2023-08-17
Great add-on! It works well when I add sentence one by one, but it just keep failing when it comes to batch adding. But I relly need the batch adding option… QAQ
Debug info: Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2023-08-17 09:51:19
embedded null byte Traceback (most recent call last): File “C:\Users\lenovo.lenovo-PC.000\AppData\Roaming\Anki2\addons21\1682655437\batch_edit.py”, line 36, in run
👍 2023-07-16
Anyone help me pls
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-16 21:18:54
Caught exception:
Traceback (most recent call last):
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1682655437\batch_edit.py”, line 171, in <lambda>
action.triggered.connect(lambda x, b=browser: onSentenceBatchEdit(b))
File “C:\Users\maing\AppData\Roaming\Anki2\addons21\1682655437\batc
👍 2023-04-27
Doing everything exactly as instructed but keep getting an error that says “Create database or change language options…” when trying to generate example sentences in edit view. I’ve downloaded and installed example sentences and done everything else the addon says I should, still doesn’t work.
👍 2023-04-26
I disabled the ‘QThread’ feature and found that manually installing it functions properly.
Anki 2.1.61
👍 2023-03-13
It’s great for adding sentences to one card at a time. Still a huge time saver, but it doesn’t work at all for batch.
👍 2023-02-26
This is an addon that works great if you use manually, but the batch add option keeps breaking for me.
I think this happens when it founds a word that isn’t in Tatoeba’s database and, instead of jumping to the next word, it enters an infinite loop. This happens specially if you’re studying a language that doesn’t have as many words in Tatoeba as the most popular one does.
Still, thanks for your work, it is great! If you check that, it would be perfect! Comment from author I will check for
👍 2023-02-08
pretty awesome!
👍 2022-12-30
If you get error like this:
Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-08-09 21:12:05
Caught exception:
Traceback (most recent call last):
File “C:\Users\me\AppData\Roaming\Anki2\addons21\1682655437_init_.py”, line 120, in createDB
to_db = [row[2]]
IndexError: list index out of range
Then you need to unzip the .bz2 file using a program like 7zip or winzip first
Als
👍 2022-12-04
Please add an option for Tatoeba Sentence Pairs (Language - Translation)!
👍 2022-11-07
Really cool! It definitely saves some time. I just wish it would also pull the translation with it. Maybe in the future, add a feature for pulling a specific language translation if available, maybe on the word-pairing tsv file.