Code Monkey home page Code Monkey logo

cambridge-dict's Introduction

Project: cambridge-dict

fetch vocabulary from cambridge dictionary.

display English/Chinese meanings, example sentences.

might be insteresting for Chinese-English learner, translator training sample generation ..

Usage

Search from terminal

steps:

  1. search the word "piggy"
./search.py piggy
  1. output:
OrderedDict([('title', ['piggy', 'piggy']),
             ('explain', ['a pig', 'like a pig']),
             ('explain_cn', ['猪,小猪', '像猪的']),
             ('example',
              ['Look at those cute little piggies, James!',
               "He's got little piggy eyes."]),
             ('example_cn', ['看那些可爱的小猪,詹姆斯!', '他长着猪眼似的小眼睛。']),
             ('phrase', []),
             ('audio_src',
              ['https://dictionary.cambridge.org/media/english-chinese-simplified/uk_pron/u/ukp/ukpic/ukpictu023.mp3',
               'https://dictionary.cambridge.org/media/english-chinese-simplified/us_pron/p/pig/piggy/piggy.mp3',
               'https://dictionary.cambridge.org/media/english-chinese-simplified/uk_pron/u/ukp/ukpic/ukpictu023.mp3',
               'https://dictionary.cambridge.org/media/english-chinese-simplified/us_pron/p/pig/piggy/piggy.mp3'])])

Word list to markdown notes

search each words in the list and generate a pretty looking note in markdown format.

steps:

  1. prepare an input file input.txt

will ignore empty lines and the lines that starts with #.

  1. run the dictionary
./note.py input.txt output.md --tag "My note"
  1. after that, an output markdown file is generated: output.md

cambridge-dict's People

Contributors

bowenzhang23 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mustafademir0

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.