rik

RikerIpsum

Generates text - like lorem ipsum - but uses real English. Taken from random samplings of dialog spoken by Commander William Riker in Star Trek: The Next Generation.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

140

Maintenance

Last Commit

6yrs ago

Contributors

3

Package

Dependencies

0

License

Creative Commons Attribution-Noncommercial-Share Alike license

Categories

Readme

#Lorem Ipsum: The Next Generation

riker

Try it out here.

Generates text - like lorem ipsum - but uses real English. Taken from random samplings of dialog spoken by Commander William Riker in Star Trek: The Next Generation.

This project was inspired by the many other "lorem ipsum" type generators out there that aim to use real English rather than jibberish.

@jessicaspacekat came up with the brilliant idea of using Riker's dialog for generating text. She created a fancy javascript generator, but I wanted something I could use in my projects - for provisioning sample data to test with. I also wanted to use all of Riker's dialog, rather than a limited subset.

I found a site, http://antoa.com/tng/, which contains the scripts of every episode of Star Trek: The Next Generation. I scraped the site then parsed out all Riker's lines. After a little bit of cleaning up, I created a large object full of every line he's ever spoken in TNG. I saved that to a pickle for quick loading, and wrote rikeripsum.py to generate random sentences.

###TODO

  • Ability to generate random words.
  • Ability to select which character you'd like to pull lines from (this is started).
  • Perhaps a way to construct truly random sentences using a sampling of words from the dialog.

###Try it out #####Live sample available here: http://ben174.github.io/rikeripsum/

##Usage

from rikeripsum import rikeripsum
rikeripsum.generate_paragraph()

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100