wordlist_to_dict updated to not use private path