Remix.run Logo
jefozabuss 4 hours ago

I think loading the big wordlist (279496 words as of now) is a waste of bandwidth as you only need to load permutations of the words in the selected challenge (e.g. you don't need "ABANDONEES" if you don't have a word with those letters).

pompomsheep 4 hours ago | parent [-]

Very true and it's a bit lazy.

I'm load a short wordlist first and then the longer version async so it doesn't really affect how long until you can start playing.

Waste of bandwidth is true. Cloudflare pages hates me

DamnInteresting 3 hours ago | parent [-]

One thing you can do is store a word profile in your database, which is a string of all of the letters in the word in alphabetical order. So the word profile for 'apple' is 'aelpp'. Then you can just include all of the words that match the profiles of the real words. For example, 'quiet' and 'quite' both have the profile 'eiqtu'.