German Anki Made Easy is a tool designed to help learners efficiently create and organize Anki flashcards for German vocabulary. It offers two main features:
- Automated Anki Card Creation: Uses the OpenAI API to generate Anki cards for German words.
- Vocabulary Categorization: Organizes words from your Anki deck by prefixes, stems, and synonyms, providing clear and structured summaries.
Begin by installing the required dependencies:
npm install
Create a config.js
file in the project directory to configure the API settings. Use the following template:
module.exports = {
apiKey: 'xxx',
dirToSave: 'xxx'
}
- Replace
'xxx'
with your API key. - Set
dirToSave
to the directory where output files will be saved.
Before using the tool, create a custom Note type in Anki with the following six fields:
- German Word
- English Translation
- German Example Sentence
- English Translation of Example Sentence
- Irregular Forms
- Notes
Next, set up two Card Types:
- Card Type 1: The front displays only the German Word, while the back shows all six fields.
- Card Type 2: The front displays only the English Translation, while the back shows all six fields.
This setup allows you to review vocabulary in both directions:
- German to English
- English to German
Once the generated file is imported into Anki, it will automatically create two flashcards for each word based on these Card Types.
To generate Anki cards for a list of German words, run the following command in the terminal:
node index.js German_word_1 German_word_2 ... German_word_n
This will create an out.txt
file in the directory specified in your config.js
. You can import this file into Anki as Notes, and Anki will automatically generate the corresponding flashcards.
To categorize words from your Anki deck, export the deck as Notes in Plain Text (.txt) format and save it in the directory defined by dirToSave
in config.js
.
Then, run the following command:
node categorizeWords.js
This will generate three Excel files:
prefixes.xlsx
stems.xlsx
synonyms.xlsx
These files will contain summaries of your deck’s vocabulary, categorized by prefixes, stems, and synonyms for easier review and organization.