Skip to content

Python script to generate an Anki deck from a CLDF dictionary

License

Notifications You must be signed in to change notification settings

drwwww/CLDF-to-Anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLDF to Anki

Python script to generate an Anki deck from a Cross-Linguistic Data Formats (CLDF) dictionary.

Requirements

  • Python 3
    • genanki (a Python 3 library for generating Anki decks)
    • pandas
    • json
    • re
    • random

How-to

  1. Choose a dictionary on https://dictionaria.clld.org/contributions.
  2. Follow the dictionary's DOI link to Zenodo (e.g., DOI: 10.5281/zenodo.3067648).
  3. Download the dictionary's .zip file (e.g., dictionaria-hdi-b795079.zip)
  4. Unzip the contents to a handy directory and copy the path to your clipboard.
  5. Run the Python script cldf_to_anki.py.
  6. Follow the prompts to:
    • Paste the path to your dictionary's json and csv files
    • Name your Anki deck
    • Save deck as...
  7. Import your newly created deck (.apkg file) into Anki.
  8. Study!

About

Python script to generate an Anki deck from a CLDF dictionary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages