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:3000
to AnkiConnectwebCorsOriginList
- Make sure the Note type
ankiminer_jp
exists, checkfrontend/anki/src/app/api.ts
for the format - Update the deck name in
frontend/anki/src/app/api.ts
if using a different deck name - Make sure to use
Syosetu scraper
to build a corpus to find example sentences - Copy a
google_credentials.json
file into the project containing a JSON key for Google Cloud platform - Run the frontend and API
# Frontend
cd frontend/anki
yarn dev
# API
make run
go 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 50
go run cmd/find_sentence/main.go -word これから
go run cmd/extract_epub/main.go '/tmp/manga.epub'