Skip to main content

A small example package

Project description

madlib_generator

I made this in a few hours because I was bored and thought it would be funny. This uses the google-research-datasets/sentence-compression dataset as a base for it's dictionary and sentence list.

Installation

pip install madlib_generator

Usage

>>> import madlib
>>> madlib.get_madlib()
'Two fugitives were deposed borrowing to scrap crime: their childhood handles.'

"They don't make any sense"

Like a 5-year-old's madlib, it's just filling random words of the right type. That means most of the outputs are barely syntactically correct:

FoxyMoron is nationwide de-emphasized up to arrest its monks in the Capital.
RMIT has capitalized a Wexford.
newsday lay DURRINGTON rests CONMAN.
An African quay has evaluated a Ofer Holdings Group waveguide guy.
The Schlumberger will fight new 5 and $ 10 Hull beers next Eusebio.
National baseball Hall of Fame has rementioned classmate of its first smartclip Bread, an attendance.
ruby would avoid its Hardware.
Paul Johnson insisted NAN 27.
Radio descendant SECP has been godown bankrupt.
Datarock and Leonard Boswell are bulldozed to default married next Canister.
Zoltan Gera would have added Community Transit assuming.
The new international spear at Har Homa monologue may be interdicted open for mudslide in July.

Though sometimes it strikes gold:

Plaster Rock considered his hunger.
welfare mother is remaining the hosepipe plunder.
A major founder has upgraded southwestern Pakistan.
All Revellers jetted off in the dark pizzas.
The real bassist Reports.
Taylor Cleared his Household.
Wells Fargo & Co. is clearing its Canadian Islanders.
A zebrafish subsoil is listening to blueberry with RD over a battered Puss.

Contributing

If you want to fix the formatting or make it more intelligent, I welcome PRs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

madlib_generator-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madlib_generator-0.1.1-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file madlib_generator-0.1.1.tar.gz.

File metadata

  • Download URL: madlib_generator-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for madlib_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b0df0cc5279162317be7283d84ff56bace10cea38598bd4d7ee5c5b54be16d78
MD5 0493579f26ecdab77f93c40f2a69d6c1
BLAKE2b-256 c454601f78ca7550057720ca5b64766109484ee16f89b9eb34416cf0a01a6515

See more details on using hashes here.

File details

Details for the file madlib_generator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: madlib_generator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for madlib_generator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c40fd67d525b9c71d5663062a9fe1ebb6958d4141cfbab75749d09c181fc5d8
MD5 b2fe8685db162d871980384b5aeac9ba
BLAKE2b-256 5392d77f64b3a71b01d352df27b7327be702d4be5a8fbdfa19e5ca395e0c49f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page