Giter Club home page Giter Club logo

bulk-spanish-word-translator's Introduction

Spanish-Word-Lookup

Tool for looking up and translating words between English and Spanish automatically. Exports results to file for importing to Anki and other flash card programs.

spanishDict.py is the main script to be executed. dictTools.py is a collection of tools for opening, exporting, printing, etc. the dictionary. myWordsToday.txt is the file where you can load words to be looked up. Each word must be seperated by a newline. /ankiExport is where an exported version of the dictionary is stored. /dictBackup is a backup of the dictionary each time the program is run.

dictTools methods:

Use dt() to create a new class newD(fileName) - Creates a new dictionary openD(fileName) - Opens an already existing dictionary saveD(fileName) - Saves dictionary modifyEntryD(spanishWord,seenWord) - Used for modifying an existing dictionary entry with new information newEntryD(seenWord,spanishWord,englishWord) - Used for adding new dictionary entry backupD(fileName) - Makes a backup of the dictionary in the /dictBackup folder searchD(word) - Searches dictionary for a specific word - user friendly existsD(word) - Searches dictionary for a specific word - computer friendly printD() - prints a table version of the dictionary information ankiExportD() - Exports dictionary to Anki format

spanishDict tools:

add.fromText() - lets you enter words in the command line add.fromFile(fileName) - lets you specify a filename to read words from spanishDictSearch() - searches each word on spanishdict.com spanishToEnglish(wordListToSearch) - Returns list of results from input word list searchAndSave(fileName) - Automates process. Can customize this to include add.fromText() or add.fromFile(). Specify whether to printD(), saveD(), ankiExportD(), or backupD().

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.