No description
Find a file
2025-01-05 11:31:53 -06:00
cmd Up max letters to 12 2025-01-05 11:27:46 -06:00
data Word & Frequency list 2023-11-27 19:55:08 -06:00
init Update systemd service file 2023-11-30 08:40:08 -06:00
tmpl Update template for max word length - again 2025-01-05 11:31:53 -06:00
tools Reorganized 2019-06-09 22:14:44 -05:00
.gitignore Renamed template directory 2023-11-30 08:43:06 -06:00
build.sh Minor cleanup 2023-11-30 08:35:59 -06:00
go.mod Converted to htmx -- no more javascript! (well not that I have to deal with) 2023-11-27 21:10:45 -06:00
go.sum Converted to htmx -- no more javascript! (well not that I have to deal with) 2023-11-27 21:10:45 -06:00
README.md Update README 2023-11-30 08:27:00 -06:00

NAME

Wordscapes Little Helper - Simple web and cli app to find words from a list

DESCRIPTION

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

GET THE CODE

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

BUILDING

From the root of the project, run:

./build.sh

USE

Help

Help is available for both commands via --help or -h.

Create a wordlist file from a wiktionary XML file

bin/extract_wordlist < wiki.xml > wordlist

Run a oneshot search from the command line

bin/wlh -w data/wordlist -f data/freqc.txt find --template .i.. --letters dibnre

Web Server

Start the web server:

bin/wlh -w wordlist -f data/freqc.txt serve

Connect to the app:

http://localhost:8080/

REPOSITORY

The git repository for this application may be found here:

https://gitlab.parasite.cc/slam/wordscapes_little_helper

AUTHOR

Jason McCarver slam@parasite.cc