GithubHelp home page GithubHelp logo

mbigatti / subtle Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 104 KB

Improve your knowledge of the english language by learning new words used in your favourite TV Shows and movies.

License: MIT License

Ruby 100.00%

subtle's Introduction

Subtle

Improve your knowledge of the english language by learning new words used in your favourite TV Shows and movies

image

Subtle is a simple Ruby command-line program that analyze SubRip subtitles files. It extracts all the unique words and check these agains a local dictionary of common words. The entries not found in the dictionary are translated from English to Italian (or a language of your choice).

Installation

  1. Download the subtle.rb script and the dictionary.txtfile;
  2. Install the Google API gem $ gem install google-api-client;
  3. Obtain a key from Google to use their API;
  4. Write the key in a filename called api.key;
  5. Enable billing on Google Developer Console to be able to call the Translate API;

Usage

Run the script with the following command:

$ subtle.rb filename.srt

The program produces to file output:

  • filename.srt.dictionary.txt with the list of new words, that can be manually added to the main dictionary;
  • filename.srt.translations.txtwith the list of translations as showed in the screenshot above.

Contact

http://bigatti.it
@mbigatti

subtle's People

Contributors

mbigatti avatar

Watchers

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