Python script to generate an Anki deck from a Cross-Linguistic Data Formats (CLDF) dictionary.
- Python 3
- genanki (a Python 3 library for generating Anki decks)
- pandas
- json
- re
- random
- Choose a dictionary on https://dictionaria.clld.org/contributions.
- Follow the dictionary's
DOI
link to Zenodo (e.g., DOI: 10.5281/zenodo.3067648). - Download the dictionary's
.zip
file (e.g., dictionaria-hdi-b795079.zip) - Unzip the contents to a handy directory and copy the path to your clipboard.
- Run the Python script
cldf_to_anki.py
. - Follow the prompts to:
- Paste the path to your dictionary's
json
andcsv
files - Name your Anki deck
- Save deck as...
- Paste the path to your dictionary's
- Import your newly created deck (
.apkg
file) into Anki. - Study!