Skip to main content

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?

Metadata

Release files for animalsgonewild 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for animalsgonewild 1.1.8
File Size Uploaded
animalsgonewild-1.1.8.tar.gz 907.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for animalsgonewild 1.1.8
File Interpreter ABI Platform
animalsgonewild-1.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 1.8 MB

Release files / animalsgonewild-1.1.8.tar.gz

Download URL animalsgonewild-1.1.8.tar.gz
Size 907.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6aa420ea06cc657ba1b7ea6af7f826006cc39545df1808151711db5d8d24847b
BLAKE2b-256 checksum
How to use checksums
d6cb0e6288f569201842d0cd0dc5ada364fb1724a85673aab537408700d60d31
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / animalsgonewild-1.1.8-py3-none-any.whl

Download URL animalsgonewild-1.1.8-py3-none-any.whl
Size 906.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
847613c6f4a0fc4654b411664593e9da75f026e283b20c539370a6449caf79a8
BLAKE2b-256 checksum
How to use checksums
8d40a855253b585d9049e58512e384296eb121079d3e7c9d18b0a70a8075c212
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page