Code Monkey home page Code Monkey logo

vocab-practice-chrome-extension's Introduction

vocab_practice

practice vocab during daily casual web browsing

Screenshot 2022-11-12 at 5 01 05 PM

tutorial recording

https://www.loom.com/share/3d1338a9f2aa40fa94520d56859265d6

description

  • This is a chrome extension that alters web pages to practice foreign language vocabulary by replacing any vocab you know with its associated foreign word.
  • to support other languages, change the language codes in the translate.js file.
  • Vocab are colored according to how often you see them:
    • (from new -> mastered) = (red, orange, purple, dark-blue, light-blue, gray, black)

translating sentences & nested json structure

  • this extension utilizes Google Translate, but you can also input vocab manually. This was important because machine translation algorithms don't consistently translate with correct grammar, so the few incorrect translations can easily be manually adjusted by saving a new translation.
  • Translations are then stored and maintained in your chrome local storage.
  • Note that to use google translate, you need to update translate.js with your google translate api key
  • I opted to store direct translations for specific sentences using a nested-structured json file, which optimizes translations of full sentences (with almost no overhead), and always ensures that the longest known translation is found
    • (i.e. the input I have should produce the output Tengo not Yo Tener

translating conjugations

  • the last thing you or I want to do is manually input translations for every conjugation of a verb. So congrats! I've automated that for you. (only for English)
  • But the original code created over 524 combinations. So I pruned that down to 109 commonly used conjugations.
  • There are options to translate past present or future tense (note that your input should also be in past present or future tense in your native language)
    nouns -> 5 conjugations
    verb present tense -> 30 conjugations
    verb past tense -> 8 conjugations
    "to be" tense / future tense -> 66 conjugations

screen shots

Screenshot 2022-11-12 at 5 01 05 PM

recomendations

recomendations

verb

verb

noun

noun

to be

to be

past

past

vocab-practice-chrome-extension's People

Contributors

softwarebyandi avatar

Stargazers

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