Tools to help with learning languages.
This is not meant to be hosted for public users because it fetches data directly from dictionary websites. It's built to create Anki cards for personal usage.
The code is also of prototype quality because it's not meant to be ran in production.
A frontend for creating Anki cards given a list of words.
- Install AnkiConnect
- Add
http://localhost:3000to AnkiConnectwebCorsOriginList - Make sure the Note type
ankiminer_jpexists, checkfrontend/anki/src/app/api.tsfor the format - Update the deck name in
frontend/anki/src/app/api.tsif using a different deck name - Make sure to use
Syosetu scraperto build a corpus to find example sentences - Copy a
google_credentials.jsonfile into the project containing a JSON key for Google Cloud platform - Run the frontend and API
# Frontend
cd frontend/anki
yarn dev
# API
make rungo run cmd/scrape_syosetu/main.go --help
Usage of /var/folders/fw/0wq08yqd3fgd69t86wv72l040000gn/T/go-build4010932054/b001/exe/main:
-end int
the ending chapter (default 10)
-series string
the code of a series (default "n6316bn")
-start int
the starting chapter (default 1)# Download the first 50 chapters of Mushoku Tensei
go run cmd/scrape_syosetu/main.go -series n9669bk -end 50go run cmd/find_sentence/main.go -word これからgo run cmd/extract_epub/main.go '/tmp/manga.epub'