Skip to main content

Behaves like the text equivalent of an animal inspired Instagram filter

Project description

animalsgonewild

codecov ci-cd Docs

This package is designed to demonstrate how basic features of text analysis can be utilized to analyze and represent a text file or string while applying a humorous lens (because what is data science without a dash of humor!). It counts the number of words from a text, calculates the average word length of that text, and returns an animal image corresponding to the average word length. It subsequently transforms the text into a wordcloud in the shape of the animal. We have included a bonus fourth function for fun, inspired by the popular childhood game - MadLibs.

Contributors

Kyle Maj, Nagraj Rao, Morgan Rosenberg, Junrong Zhu

Installation

pip install animalsgonewild

Usage

This package can be used in conjunction with any code to read in multiple text files to analyze and compare whole corpuses (your software must call the Animals Gone Wild functions for each text variable).

For more examples of usage in python, please check out this link.

import animalsgonewild
from animalsgonewild.animalsgonewild import animalClassifier
from animalsgonewild.animalsgonewild import animalType
from animalsgonewild.animalsgonewild import textTransformer
from animalsgonewild.animalsgonewild import wordClous

Function 1: animalClassifier

This function takes a sequence of text(str), counts the words in the string, and then returns an animal type (str).

Function 2: animalType

This function takes a sequence of text(str) and a species (str), determines the average word length (proxy for language complexity), and returns an smart looking animal image (jpg) corresponding to the average word length.

Function 3: wordcloud

This function takes a sequence of text(str) and an animal image (jpg), and returns a wordcloud in the shape of the species comprised of the sequence of text (jpg).

Function 4: textTransformer

This function takes a sequence of text(str) and a species(str), and returns a new text sequence where all proper nouns are replaced with the species.

Fit within the Python ecosystem

While other fun packages with animal images exist, most are very basic. For example, the animal-cuties script (https://pypi.org/project/animal-cuties/#description) generates animal images (e.g. animal-cuties cat). However, we were unable to find any interactive, multidimensional comedic relief package, where users can input information, and receive dynamic humorous feedback in the form of cute and/or hilarious animals. Given how much time we all are spending in front of a computer screen during the pandemic, this package is an essential addition to the ecosystem promoting mental wellness through humor. By offering it as a package rather than a script, we also empower other developers to integrate this is as a fun injection to their coding projecs.

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

animalsgonewild was created by DSCI 524 - Team 16: Nagraj Rao, Junrong Zhu, Kyle Maj, Morgan Rosenberg

It is licensed under the terms of the MIT license.

Credits

animalsgonewild was created with cookiecutter and the py-pkgs-cookiecutter template.

Easter egg #1

Did you know the name of our package was almost called "whattheduck"?

Easter egg #2

Got any carrots?

Easter egg #3

Aren't we pretty?

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

animalsgonewild-1.1.8.tar.gz (907.8 kB view details)

Uploaded Source

Built Distribution

animalsgonewild-1.1.8-py3-none-any.whl (906.6 kB view details)

Uploaded Python 3

File details

Details for the file animalsgonewild-1.1.8.tar.gz.

File metadata

  • Download URL: animalsgonewild-1.1.8.tar.gz
  • Upload date:
  • Size: 907.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for animalsgonewild-1.1.8.tar.gz
Algorithm Hash digest
SHA256 6aa420ea06cc657ba1b7ea6af7f826006cc39545df1808151711db5d8d24847b
MD5 cbeac238b93abb2fd1f1a5efd576f7f2
BLAKE2b-256 d6cb0e6288f569201842d0cd0dc5ada364fb1724a85673aab537408700d60d31

See more details on using hashes here.

File details

Details for the file animalsgonewild-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: animalsgonewild-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 906.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for animalsgonewild-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 847613c6f4a0fc4654b411664593e9da75f026e283b20c539370a6449caf79a8
MD5 b10bb3bd227aaddaf10cbbe1ceddd4d4
BLAKE2b-256 8d40a855253b585d9049e58512e384296eb121079d3e7c9d18b0a70a8075c212

See more details on using hashes here.

Supported by

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