Home › Forums › kdb+ › Wordle kdb › Re: Wordle kdb
-
Here is my morning!1) Get me some words…
q)wordz:system "curl http://wiki.puzzlers.org/pub/wordlists/unixdict.txt";
2) Think about any any obvious misdirections?q)words where words like "*'*" "aren't" "d'etat"
Okay we need to lose these guysq)wordz:wordz where all each wordz in .Q.a;
And we only want to get the 5 letter words so…q)wordz:wordz where 5=count each words
3) So my next thought was to look at most popular letters in each location for 5 letter wordsq)letFreq:desc each count each 'group each flip wordz q)letFreq "sbcaptmdfglrehwkvnojiquyzx"!435 265 262 216 194 179 174 159 148 146 131 115 .. "aoeriluhntpywcmsdbgxvkfqzj"!490 389 371 325 267 260 247 174 99 94 67 57 50 4.. "aiorenlutsdgmbcpvywfkzhxjq"!385 322 283 275 239 205 198 193 161 114 103 99 8.. "eainrsctolugdmkpvfhbwzyxj"!391 256 251 238 222 204 203 203 192 190 117 101 9.. "eytnlrhasdkopmcgifxwbzuv"!566 427 289 254 198 180 174 169 167 128 127 104 65..
I decided to flip these just on the off chance it spells out something humorous , also I had to take 26 of each because as you can imagine, no 5 letter word ends in q (for example) so the flipping would give a ‘length error
q)flip 26#'key each letFreq "saaee" "boiay" "ceoit" "arrnn" "pierl"
Alas Earwax! It would have pretty cool if that first line was a word right?
Anyway, my next thought would be to assign scores to letters in words in a given location i.e. if a word starts with s it gets the most points for that location, b is the second most points? Hopefully then we would find the optimum real word? Would love to know if anyone is thinking differently on this?