There are two arrays in the Wordle JavaScript. One is a list of valid answers, the other is a list of other words you can guess but aren't valid answers. You can view source and pull them both out. My code does this for you and allows you to use regular expressions:
https://news.ycombinator.com/item?id=30653322
There are also lists of Scrabble words; I use one called enable.
There are also lists of Scrabble words; I use one called enable.