Awesome
Objective
From a master English word list, filter to only keep words that:
- Are exactly 5 characters long.
- All characters are lower-case. This eliminates people and place names that wouldn't be considered in a game such as wordle.
The master word file was copied from a gist file.
Installation
This has been tested on an iMac running MacOS Monterey. These instructions will largely work for Linux; on Windows, YMMV.
- Clone this repo to your PureScript projects folder
git clone https://github.com/oldfartdeveloper/wordle-generate-word-list.git
- Follow the GitHub instructions. There are simple examples of how to perform the most important PureScript development operations.
cd
into the new repo's directory.spago build
. It should build successfully
Running the Application
To generate the text file containing the 5-letter words:
- Be sure you are in the project directory.
- Run
spago run
- Verify that the file has been generated as
doc/words.txt
. It should have the current time stamp.
If you haven't already, clone and install the wordle-solver
repo which will use this project's generated file.