GithubHelp home page GithubHelp logo

baharyazici / lingo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from augustuskling/lingo

0.0 0.0 0.0 114.24 MB

Vocabulary Trainer

Home Page: https://augustuskling.github.io/lingo/

JavaScript 18.16% TypeScript 72.88% HTML 0.38% SCSS 8.58%

lingo's Introduction

lingo

Vocabulary Trainer

Displays or reads example sentences and their translations. Exercises request picking correct translations or building them from a bunch of given words. Voice exercises are based on your device's text-to-speech feature.

Runnable version at https://augustuskling.github.io/lingo/ which caches courses to work offline. Progress is stored in the browser's localStorage only. No account required.

Data source

Example sentences are imported from Tatoeba. Excercises can be grouped into thematic lessions by putting yml files in the lessons folder.

You can find Tatoeba's sentenences and translations to various langages on https://tatoeba.org/en/downloads and integrate them using build-tatoeba-course.mjs.

Run the course compiler to generate a course for a new language pair.

node build-tatoeba-course.mjs SOURCE_LANGUAGE_CODE TARGET_LANGUAGE_CODE (replace SOURCE_LANGUAGE_CODE and TARGET_LANGUAGE_CODE with the respective ISO-639-3 language codes)

Then run yarn build to create a static website containing the new course.

Exercises will only be shown for sentences that are linked as direct translations of each other. IPA transcription is generated using espeak-ng for target languages where a mapping of language to espeak-ng voice is known.

Lesson format

# Order of courses in course list
order: 5

title:
 eng: "Kitchen"
 deu: "Küche"
 swe: Kök
description:
 eng: "Cooking and ingredients"
 deu: Kochen und Zutaten

# Sentences making up the lesson given by Tatoeba sentence ids in either source language, target language or English.
exercises:
  - 310737
  - 10136126
  - 10207593

# Sentences making up the lesson given by Tatoeba tag name.
exerciseTags:
  - Küche
  - kitchen
  - food
  - fruit
  - cooking

# Sentences making up the lesson given by Tatoeba list id.
lists:
  - 171778

The course compiler ignores sentences from lessons if it cannot relate them to your source and target languages. Lessons with no remaining sentences are excluded.

lingo's People

Contributors

augustuskling 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.