Giter VIP home page Giter VIP logo

language-learning-tools's Introduction

language-learning-tools

Tools to help with learning languages.

Disclaimer

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.

Tools

Anki Miner

A frontend for creating Anki cards given a list of words.

Setup

  1. Install AnkiConnect
  2. Add http://localhost:3000 to AnkiConnect webCorsOriginList
  3. Make sure the Note type ankiminer_jp exists, check frontend/anki/src/app/api.ts for the format
  4. Update the deck name in frontend/anki/src/app/api.ts if using a different deck name
  5. Make sure to use Syosetu scraper to build a corpus to find example sentences
  6. Copy a google_credentials.json file into the project containing a JSON key for Google Cloud platform
  7. Run the frontend and API
# Frontend
cd frontend/anki
yarn dev

# API
make run

Preview

Anki Miner preview

Syosetu scraper

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)

Example

# Download the first 50 chapters of Mushoku Tensei
go run cmd/scrape_syosetu/main.go -series n9669bk -end 50

Search for word in corpus

go run cmd/find_sentence/main.go -word これから

Extract manga from EPUB

go run cmd/extract_epub/main.go '/tmp/manga.epub'

language-learning-tools's People

Contributors

antonve avatar dependabot[bot] avatar

Stargazers

 avatar Sieugene avatar Roman avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

language-learning-tools's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.