Git Product home page Git Product logo

gutendelight's Introduction

@gutendelight

Build Status Python: 3.6+ Code style: black

Tweeting a mix of hip-hop (Rapper's Delight, Fight the Power, The Message, etc.) and classic literature from Project Gutenberg.

See the Twitter bot in action at @gutendelight and some of the best at Favstar.

Some examples

The brother who rocks so viciously
He gazed at me suspiciously

https://twitter.com/hugovk/status/564387719259111425

He said, "Sit down, punk, I wanna talk to you
Each has his lot, and bears the fate he drew.

https://twitter.com/gutendelight/status/566563697787940865

I guess by now you can take a hunch
"Let us consider," said he, after lunch.

https://twitter.com/gutendelight/status/566563143791673344

Then you throw your hands high in the air,
"I don't see," said the native Bear.

https://twitter.com/gutendelight/status/566560879475687425

Algorithm goes a little something like this

  1. Pick a random line from a file containing a bunch of hip-hop lyrics.
  2. Take the last word and find its rhymes using the Wordnik API.
  3. Pick a rhyme at random.
  4. Find all the sentences from the Project Gutenberg August 2003 CD ("contains 600 of our best Ebooks") that end with that rhyming word (using gutengrep).
  5. Pick one that's about the same number of syllables as the first line (using Akkana Peck's countsyl).
  6. If no rhymes or matches found, or a sentence is too long, try another until something's found.
  7. Tweet 'em!

gutendelight's People

Contributors

hugovk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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