The helper fetches a Wordle word list (default URL). If that fails, it uses a built-in small list. It filters candidates by simulating Wordle feedback for each submitted guess (so duplicate letters are handled correctly), then ranks remaining words by letter-frequency heuristic.
You can change the word list URL inside the script if you prefer a different source.