Wordscapes Little Helper - Simple web and cli app to find words from a list
Wordscapes is a mobile game that gives you a group of letters from which you try to make words that fit in a puzzle. The puzzles contain multiple words ranging from 3 to 7 letters arranged in a crossword-puzzle style. Sometimes you will know one or more of the letters in a word, where it crosses another you've already guessed. Something like this:
Letters: DIBNRE
_
______
_
_
A solution might be:
B
BINDER
N
D
This application provides two programs:
- extract_wordlist - Extract a list of words from an XML dump of the wiktionary.org wiki
- wlh
- Perform a oneshot search from the command line
- Start a web server serving the wlh app
XML dumps of the wiktonary wiki can be found here:
https://dumps.wikimedia.org/enwiktionary/latest/enwiktionary-latest-pages-articles.xml.bz2
Use go get - ignore error: no Go files in ...
go get gitlab.parasite.cc/slam/wordscapes_little_helper
Or clone the git repo:
git clone https://gitlab.parasite.cc/slam/wordscapes_little_helper
From the root of the project, run:
./build.sh
Help is available for both commands via --help or -h.
bin/extract_wordlist < wiki.xml > wordlist
bin/wlh -w data/wordlist -f data/freqc.txt find --template .i.. --letters dibnre
Start the web server:
bin/wlh -w wordlist -f data/freqc.txt serve
Connect to the app:
http://localhost:8080/
The git repository for this application may be found here:
https://gitlab.parasite.cc/slam/wordscapes_little_helper
Jason McCarver slam@parasite.cc