Skip to main content

CLI program to filter word choices to aid solving Wordle game problems

Project description

WORDLE-AID

wordle-aid is a Linux command line program to filter word choices to aid solving Wordle problems. You run this program specifying your previous guesses and results, and then the program outputs a list of candidate words in English frequency usage order to your terminal.

The following example Worldle solution best illustrates how to use it.

wordle solution

  1. Choose any starting word as normal. You can even use wordle-aid to help with this, e.g.

    # print all 5 letter words, in reverse frequency order to screen:
    wordle-aid .....
    
    # Or, print all 5 letter words with at least 3 vowels:
    wordle-aid -v3 .....
    
    # Or, print all 5 letter words with at least 3 vowels and all unique letters:
    wordle-aid -v3 -u .....
    
  2. Enter ARISE as your first guess on Wordle, which gives result on first line above. Then run:

    wordle-aid aRise .....
    

    Note: Specify the guess word you used and set each candidate letter (yellow and green) to upper-case, and each non-candidate letter to lower-case.

  3. Choose a word from the suggestion list output from above command. We choose to enter WORLD which gives result on second line above, then run:

    wordle-aid aRise woRld .O...
    

    Note: Here we have set the right-side wildcard word to include the correctly placed green O letter.

  4. Choose a word from the suggestion list output from above command. We choose to enter COURT which gives result on second line above, then run:

    wordle-aid aRise woRld couRT .O...
    
  5. Choose a word from the suggestion list output from above command. We choose to enter MOTOR which gives final correct answer.

In summary, specify ..... (all wildcards) as your starting result and insert characters to it as your find them, i.e. all green letters from each guess. Note that the number of wildcard characters determines the Wordle game word size (e.g. wordle-aid arises ...... for a 6 letter game). Specify your previous word guesses earlier on the command line. They don't actually have to be in the order that you guessed them although likely you will be re-editing from your command history so they will be. Yellow letter guesses (i.e. letter valid but in incorrect place) are entered as upper case, and dark/grey letter guesses (i.e. letter not present anywhere) are entered as lower case. Green letters (i.e. letter valid and in correct place) can be lower or upper case in the earlier word arguments, but must be specified in the final wildcard word.

Try wordle-aid out on the Wordle Archive.

Word Dictionary

Wordle-aid embeds a copy of the Kaggle English Word Frequency CSV file which contains about 333 thousand of the most common english words on the web. You can use an alternative file using the -d/--dictfile option. You can make this alternative file your default by specifing --dictfile as a default starting option.

Installation or Upgrade

Arch users can install wordle-aid from the AUR.

Python 3.6 or later is required. Note wordle-aid is on PyPI so just ensure that python3-pip and python3-wheel are installed then type the following to install (or upgrade):

$ sudo pip3 install -U wordle-aid

Or, to install from this source repository:

$ git clone http://github.com/bulletmark/wordle-aid
$ cd wordle-aid
$ sudo pip3 install -U .

To upgrade from the source repository:

$ cd wordle-aid # i.e. to git source dir above
$ git pull
$ sudo pip3 install -U .

Wordle-aid runs on pure Python. No 3rd party packages are required.

Command Line Options

usage: wordle-aid [-h] [-d DICTFILE] [-v VOWELS] [-u] words [words ...]

CLI program to filter word choices to aid solving Wordle game problems.

positional arguments:
  words                 list of attempted words. Upper case letter is right
                        letter but wrong place. Lower case letter is wrong
                        letter anywhere. Last word is wildcards for current
                        matches.

options:
  -h, --help            show this help message and exit
  -d DICTFILE, --dictfile DICTFILE
                        alternative dictionary+frequency text file, default =
                        /usr/share/wordle-aid/words.txt.
  -v VOWELS, --vowels VOWELS
                        exclude words with less than this number of unique
                        vowels
  -u, --unique          exclude words with non-unique letters

Note you can set default starting arguments in your ~/.config/wordle-aid-
flags.conf.

Default Command Arguments

You can add default arguments to a personal configuration file ~/.config/wordle-aid-flags.conf. If that file exists then each line of arguments will be concatenated and automatically prepended to your wordle-aid command line arguments. You may want to use this to specify --dictfile to use a different default word dictionary file.

License

Copyright (C) 2022 Mark Blakeney. This program is distributed under the terms of the GNU General Public License. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses/ for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wordle-aid-1.4.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

wordle_aid-1.4-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file wordle-aid-1.4.tar.gz.

File metadata

  • Download URL: wordle-aid-1.4.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2

File hashes

Hashes for wordle-aid-1.4.tar.gz
Algorithm Hash digest
SHA256 790e4f648679a831428808deb93ace27de56cd36c4077bf72597b5aba5b629a1
MD5 a5c50d72506473355e9390c4aa15a406
BLAKE2b-256 5ce60aded9bbb4321b2a5fba42316435ab85b2f8caa217eb52f9896117d45bab

See more details on using hashes here.

Provenance

File details

Details for the file wordle_aid-1.4-py3-none-any.whl.

File metadata

  • Download URL: wordle_aid-1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.0 CPython/3.10.2

File hashes

Hashes for wordle_aid-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 698d2399fbd036f780984f1782e066305ce0a4105a7dfb802e1f9fc66c0fb5a4
MD5 c2d88dcb9fd53a77548f65337ebb287c
BLAKE2b-256 f533852439df6c02d1871a8611fab46409b557f0d8b013eaf84fd54edd04fc17

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page