Skip to main content

A Python package to generate random English words based on word length and count

Project description

Random English Word Generator

🎉 Random English Word Generator is a Python package that generates random English words based on the length and number of words you specify! 🎉

This package leverages the nltk corpus to generate real English words, making it perfect for tasks like text augmentation, random text generation, and adding random noise to datasets.

Features

  • Custom Word Length: You can specify the word length for each word generated.
  • Generate Multiple Words: Generate a list of random words by specifying how many you need.
  • Lightweight & Easy to Use: No external dependencies other than nltk, and easy to set up.

Installation

Install the package using pip:

pip install random-english-word-generator

Usage

from random_english_word_generator import generate_words

# Generate 5 random words of length 6
words = generate_words(word_length=6, num_words=5)
print(words)
# Output: ['planet', 'system', 'orange', 'monkey', 'banana']

Contributing

If you have any suggestions for improving this package, feel free to open an issue or submit a pull request on GitHub. We appreciate your contributions!

Links

For more tools and features, visit our website: 👉 randomgenerator.ai

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

random-english-word-generator-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

random_english_word_generator-1.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file random-english-word-generator-1.0.1.tar.gz.

File metadata

File hashes

Hashes for random-english-word-generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 01a8f1633673dc5fb373e86bed37332553e42ff00786ddb715212300809f6694
MD5 0134b992e7d0e4788a94829091d22aaf
BLAKE2b-256 5b0bdf654b1c17af0bc3dddd39b7b6853f86e750f28679a8a152701c7c2dd735

See more details on using hashes here.

File details

Details for the file random_english_word_generator-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for random_english_word_generator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01d4d2737781ba7a6ed498e874fe0c8caec051e6137eb6e65a0827574b487942
MD5 dc3e4ad42ab944b48ec28819b748ca8e
BLAKE2b-256 38e9ea858b3b225e6f3bf9e4aff289ab17f588d68048f73fe6c9581f9f5ef725

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