![]() word ( starts_with = "ru", word_max_length = 10, include_parts_of_speech = ) word ( regex = ".*a" ) # you can combine multiple filtering options r. word ( word_min_length = 3, word_max_length = 8 ) # generate a random word with a custom regular expression r. ![]() word ( include_parts_of_speech = ) # generate a random word between the length of 3 and 8 characters r. word ( starts_with = "a", ends_with = "en" ) # generate a random noun or adjective, by default all parts of speech are included r. word () # random word that starts with a and ends with en r. Generate words with the word method: from wonderwords import RandomWord r = RandomWord () # generate a random word r. The base random word generation class is the RandomWord class. Since Wonderwords hasĪ command line interface and python module, you will find two subsections. This section will briefly describe Wonderwords usage. If you get a ModuleNotFound error, make sure that you have installed To verify that the installation worked, import Wonderwords in python: import wonderwords To upgrade Wonderwords with pip use: pip install -upgrade wonderwords To install the latest version of Wonderwords, use your favorite package managerįor the Python Package Index to install the wonderwords package. Easy-to-use interface and comprehensive documentation.Use custom word lists and define custom categories of words.Specify word length, what it starts and ends with, category, and even custom.Interface for quickly generating random words. It also comes with a colorful command line Wonderwords is a python package useful for generating random words and Generate random words and sentences with ease in python
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |