Giter VIP home page Giter VIP logo

bettau_cli's Introduction

bettaU - AI Language Learning CLI

bettaU Banner

Important

bettaU uses ChatGPT and you need an OpenAI API key to use it.

Important

bettaU is more of a proof of concept than a ready-to-use tool, but if you're not looking for much, it works.

Overview

bettaU is a simple CLI that uses AI to help you learn a new language. You provide it with sentences in English - as a yaml file - and you're prompted to translate them into the language you're learning.

The idea is that you're forced to translate whole sentences - unlike e.g. Clozemaster - and that you're more flexible with your answers and you're answers don't get rejected because you're using a synonym that other tools don't know of.

An example yaml file can look like this:

name: Swedish
contents:
  - She reads books every night.
  - He plays guitar after school.

name should be the name of the language you're learning - it's used by ChatGPT. Don't just set it to anything.

Notice that you don't have to provide the translations - bettaU will prompt you to translate the sentences and check the result using ChatGPT.

Usage

To learn a deck - which is simply a yaml file, as shown above - run:

export TOKEN=<your openai token>

go run bettau.go learn <path to deck> # e.g. test-decks/swedish.yaml

Sentences will be chosen randomly. There is no spaced repition etc. - it's just a proof of concept / prototype. Reason is mostly that it's hard to gather sentences classified into different difficulty levels - I don't know where to get the data. Tatoeba has a lot of sentences, but they're not classified by difficulty.

bettau_cli's People

Contributors

koenigscode avatar

Stargazers

Nazar Kornienko avatar

Watchers

 avatar

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.