Add textgen tool
Expand TODO list for vocabgen
Add word frequency sorting
Source code for tools I use for learning Japanese, and maybe other languages in the future. Mainly for generating Anki decks right now.
Information is fetched from jisho.org.
To generate a "general" vocab deck of all common vocabulary:
./vocabgen output.apkg
To generate a deck of JLPT N4 and N5 vocab:
./vocabgen -j 4-5 output.apkg
To generate a deck of music vocab for the concert you're going to next week:
./vocabgen -t '#music' output.apkg
For dirty words, including the uncommon ones:
./vocabgen -Tt '#X' output.apkg
For additional flags, see ./vocabgen -h
Patches and questions welcome at my public inbox: ~sircmpwn/public-inbox@lists.sr.ht.
Incorporate word frequency lists from Wikipedia for ordering the resulting notes:
https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/Japanese
https://en.wiktionary.org/wiki/Wiktionary:Frequency_lists/Japanese10001-20000
vocabgen
kanjigen