Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with defining word type in random_word(). #42

Open
KickTrio opened this issue Dec 5, 2020 · 1 comment
Open

problem with defining word type in random_word(). #42

KickTrio opened this issue Dec 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@KickTrio
Copy link

KickTrio commented Dec 5, 2020

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_words import RandomWords
rw = RandomWords()

word = rw.random_word(minLength=2)

print(word)

Expected behavior
To get a word with always more then 2 characters.

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

Environment (please complete the following information):

  • OS: Windows 10 Home
  • Python 3.9

Additional context
Add any other context about the problem here.

@vaibhavsingh97 vaibhavsingh97 added the bug Something isn't working label Feb 4, 2021
@RapidCompiler
Copy link

@KickTrio There seem to be a couple of errors in your code. First, you are importing random_words and not random_word. Also, the function to generate a random word is get_random_word() and not just random_word(). I wasn't able to get the exact problem you may have got, but please do let me know if this solves your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants