So you are on the path of improving your Estonian skills and want to learn some words?
Then just create a text file where each line contains a word and then run
just create-cards sonaveeb-a1.txt sonaveeb-a1-deck.txt
This repo contains 5 sets of exported words (with slight modifications) from Sõnaveeb dictionary.
sonaveeb-a1.txt
sonaveeb-a2.txt
sonaveeb-b1.txt
sonaveeb-b2.txt
sonaveeb-c1.txt
So you can just create 5 standard decks.
Deno and Just. On macOS just (pun intended) install it with Homebrew.
brew install deno just
- Parses input txt files, first column of a tab-delimited input file is considered the word to search in
SõnAPI
. - Fetches this word data from
SõnAPI
and caches results into a file so not to abuseSõnAPI
. - If all the words have non-empty results then the output deck is created. Otherwise you need to either remove the word from input file or correct it (for example some words in raw
Sõnaveeb
export had their 2nd form in parentheses thus making it unsearchable inSõnAPI
).
- Right now translation language of the cards is hardcoded (Russian). Will add options to customize language priority (so in case translation in your preferred language is missing then fallback to another one).
- Card template is pretty basic and also hardcoded. Will make it customizable.
- Maybe add more output formats, not only
Anki
?