https://github.com/3ofiz4/kanji2vocab
A simply python automaton for my Anki deck that automates the vocabulary being generated for a currently learned kanji and filter the vocabulary with any kanji that has been learned.
https://github.com/3ofiz4/kanji2vocab
anki anki-deck api convenience helper japanese kanji python python-3 python3 utility
Last synced: 23 days ago
JSON representation
A simply python automaton for my Anki deck that automates the vocabulary being generated for a currently learned kanji and filter the vocabulary with any kanji that has been learned.
- Host: GitHub
- URL: https://github.com/3ofiz4/kanji2vocab
- Owner: 3oFiz4
- Created: 2024-12-25T19:51:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-22T14:17:46.000Z (3 months ago)
- Last Synced: 2026-03-23T05:40:12.037Z (3 months ago)
- Topics: anki, anki-deck, api, convenience, helper, japanese, kanji, python, python-3, python3, utility
- Language: Python
- Homepage:
- Size: 136 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kanji2Vocab
This is a program I made to assist me with English-Japanese Vocabulary Generator via Anki Cards.
This program really helps me a **lot**. And in fact, is the only repo that I use a lot among other repo you can find in my GitHub.
This program are and have NOT served for others, since I never had the intent to. This code can be understood fully by me. Additionally, this repo present here as for my drive alternative.
I might turn this into a open-source program when I have time.
## Code Template
```.env
AI_URL = "openai end point url"
AI_MODEL = "gpt-4.1-nano"
API_KEY_0 = "q72....Zg"
API_KEY_1 = "jFn....Jw"
```
## Requirement
```
requests, pyperclip, beautifulsoup4, rich, openai, aiohttp, dotenv
```
## To-Do
To-Do:
- [x] Add a Tag for each Vocabulary in Pagination (e.g. N5, N4, N3, WN29, WN29-20, CMN)
- [x] Add a Shortener for the formatted meaning (e.g. Suru verb => (suru), Na-Adjective => (な), Adverb => (ADV))
- [ ] Add a search system in Pagination, that able to search meaning, furigana, kanji, or even tags
- [ ] Add a filter system that filters the tag
- [ ] Add a Hiragana-Katakana converter if a certain Vocabulary are confirmed as by their Onyomi
- [ ] Add an extended configuration, editable Template, editable hasLearned
- [x] Add a CMD GUI (ex. below)
```
Kanji2Vocab
1. Search Vocab (type. 1[KANJI], ex: 1何)
2. Modify configuration
3. Credit
4. Exit
```
- [x] Add a system when a certain meaning has an example.
- [x] Improve Pagination system so instead of `NTH. [VOCAB] ([FURIGANA])\n=>[MEANING]` it has a table generated (Clue: Use Rich).
- [x] Show more logs, such as (total vocabs scraped per page)
- [ ] Make code more readable and less messy :) (already messy btw, so whats the point?)
- [x] Improve Scrapper (optional) = Modified to use LXML, scrape Kanji also, i guess thats an improvement XD
- [x] Add an API integration with an AI Chatbot to automatically creates a Spoiler, and contextual usage of a vocabulary (optional)
- [x] Add stroke drawing (optional)
- [x] Add colored for some tags and info
- [x] Add example sentence
- [ ] Add spelling sound
- [ ] Add pitch accent marker
- [ ] Improve example
Additional Idea:
Accomodate Kanji(forgot the name ;-; ) which accomodate more examples, and kanji info.