vaibhavsingh97 / random-word

This is a simple python package to generate random english words
https://pypi.org/project/random-word/
MIT License
123 stars 25 forks source link

Error using keyword arg. in random_word #91

Open DivyamSinghania opened 2 months ago

DivyamSinghania commented 2 months ago

When I add keywords to narrow down the word params it gives an error saying that there is an unexpected keyword. TypeError: random_word() got an unexpected keyword argument 'minLength' To Reproduce:

from random_word import RandomWords rw = RandomWords()

word = rw.get_random_word(minLength=5) print(word)

Expected behavior To get a word with length more than equal to 5

Screenshots If applicable, add screenshots to help explain your problem.

OS: Windows 10 Home Python 3.11