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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file random-english-word-generator-1.0.1.tar.gz.
File metadata
- Download URL: random-english-word-generator-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01a8f1633673dc5fb373e86bed37332553e42ff00786ddb715212300809f6694
|
|
| MD5 |
0134b992e7d0e4788a94829091d22aaf
|
|
| BLAKE2b-256 |
5b0bdf654b1c17af0bc3dddd39b7b6853f86e750f28679a8a152701c7c2dd735
|
File details
Details for the file random_english_word_generator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: random_english_word_generator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01d4d2737781ba7a6ed498e874fe0c8caec051e6137eb6e65a0827574b487942
|
|
| MD5 |
dc3e4ad42ab944b48ec28819b748ca8e
|
|
| BLAKE2b-256 |
38e9ea858b3b225e6f3bf9e4aff289ab17f588d68048f73fe6c9581f9f5ef725
|