Open madappally opened 3 years ago
I have the same issue, looks like r.get_random_words()
sometimes returns an empty list
yes it does, return an empty word even on r.get_random_word()..!
I think it's a problem with the API used to generate words. Do they've any limits or something?
passing the following params into RandomWords solved the problem, works fine in production.
I think including hasDictionaryDef
and includePartOfSpeech
is necessary.
r = RandomWords() mnemonic_list = r.get_random_words(hasDictionaryDef="true", includePartOfSpeech="noun,verb", minLength=4, maxLength=6, sortBy="alpha", sortOrder="asc", imit=24)
Describe the bug r.get_random_words() sometimes returns an empty list. Is that a problem with API used to generate words?
To Reproduce