Giter VIP home page Giter VIP logo

rhyme's Introduction

English Rhyming Dictionary

This program outputs all the known perfect rhymes for the given word(s). The
results are normally filtered according to a list of valid English words (see
"WORD LIST" below) and then displayed to the user, grouped by the number of
rhyming syllables (the "order" of the rhyming word).

RHYMING DICTIONARY

  This program uses the Carnegie Mellon University Pronouncing Dictionary
  (called the "CMU dictionary"). This dictionary (UTF-8 encoded) is included in
  the data directory.

WORD LIST

  The CMU dictionary includes words not commonly present in daily speech. To
  rectify this, a list of valid words can be given. Only resulting rhymes
  present in this word list (called a "dictionary" by the program) are
  displayed. Additionally, words starting with an upper-case letter (usually
  proper nouns) can be omitted via -n,--no-capital.

  Words present in this dictionary are displayed using the same capitalization
  as they have in the file. Therefore, with -a,--all, upper-case words in the
  output aren't present in the word list.

  If no word list is given, then everything from the CMU dictionary is included
  in the output and all words will be upper-case.

PERFECT/IMPERFECT RHYMES

  By default, only perfect rhymes are displayed. Passing -R,--remove-stresses
  removes lexical stress notation and, in turn, adds imperfect rhymes to the
  output.

  In this specific program, I'm using the term "imperfect rhymes" to refer to
  words that share the same rhyming syllables but differ in lexical stress. For
  example, "BRIDGE" and "CARTRIDGE" rhyme but differ in which syllable is
  stressed.

REFERENCES

  This CMU dictionary was obtained via the Carnegie Mellon University website:
    http://www.speech.cs.cmu.edu/cgi-bin/cmudict
  and retrieved on the 7th of September 2020.

  This code was loosely inspired by the node-rhyme (version 0.0.3) module by
  James Halliday (http://substack.net)
    https://github.com/substack/node-rhyme
  None of their code is included in this final program.

rhyme's People

Contributors

kaedenn avatar

Stargazers

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