0

I am looking at the "wordlist.txt" file for Bookworm Deluxe (an old game by PopCap), and I have not been able to make sense of it. Most of the lines seem to be pieces of words, often with a single digit prefixing them. These numbers do not constantly represent a same letter combination, as 2rdvark would seem like 2 is "aa", but 2s is also in the list, and "aas" is not a word. Take note that the game has to have letter rarity information somewhere, but bonus words have their own separate file. Here is the file as a Gist.

1 Answer 1

1

This answer is based on this post on codegolf

It mentions

The rules for unpacking the dictionary are simple:

  1. Read the number at the start of the line, and copy that many characters from the beginning of the previous word. (If there is no number, copy as many characters as you did last time.)

  2. Append the following letters to the word.

It also mentions the word list with this output

aa
aah
aahed
aahing
aahs
aal
aaliis
aals
aardvark
aardvarks
aardwolf
aardwolves
2
  • This looks correct. Thank you! Will try it out.
    – TheLabCat
    Commented Aug 29, 2023 at 11:55
  • 1
    @TheLabCat You can accept the answer if you feel this is a good answer
    – sudhackar
    Commented Aug 29, 2023 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.