mrmaxguns / wonderwordsmodule

Generate random words and sentences with ease in Python. Be on the lookout for bugfixes and speed improvements in 2.3
https://wonderwords.readthedocs.io
MIT License
51 stars 10 forks source link

"Pray" is not a noun. #16

Open Myridium opened 1 year ago

Myridium commented 1 year ago

Describe the bug The word pray was generated in the noun category. It is not a noun.

To Reproduce I don't know; I didn't save the random state of the program. This line produced it: noun = wonderwords.RandomWord().word(include_parts_of_speech=["nouns"])

Expected behavior The word pray should not be generated, because it is not a noun.

Other notes It also generated falling-out which is not really a noun. It's not even a word.

mrmaxguns commented 1 year ago

For some reason pray is on the noun list. Removing it should fix the problem. I will implement a fix. I think falling-out should be kept because it is a noun that is not uncommon in the wide corpus of English literature https://www.merriam-webster.com/dictionary/falling-out.