# Letter blocks

TLDR; My dad and I Made some letter blocks for my daughter.

You will need to excuse my paint job I seriously underestimated much clear coat the soft wood would absorb before it was smooth enough to fill the letter engraves with color.

Longer story

Started with my dad making 26 cube blocks over thanksgiving.

We wanted to engrave letters on the blocks and were not finding any good recommendations for what letters we should have.

So we asked the question how many english words are there.

So I did a quick search and found this dictionary of 466,000 words https://github.com/dwyl/english-words

I wrote a quick check to find out how many words were less than 26 blocks. Turns out only a few wouldnâ€™t fit with that many blocks.

So we could get a decent number of words. But we still didnâ€™t have the actual set we needed. So I wrote a quick brute force algorithm that could get us a rough guess. It took 4 minutes to run and spat out a set where the blocks had letters on all 6 sides and we found that we could get ~95% of all words with only 26 blocks.

So since that was working so well we decided to add a couple limits since we were getting such a good result. We decided we wanted at least the full alphabet A-Z and all the numbers on the blocks 0-9. And we also wanted one side open for pictures on each block. Adding those limits to the generator brought us down to ~82% of words.

At this point Iâ€™d spent an hour or 2 writing code while cooking thanksgiving dinner. Cue a couple days of distraction eating delicious dinner. Finally we get home from visiting my parents and I have a couple hours to work on and finalize the design.

This is where it gets kinda out of hand. We were having a hard time deciding on a font and we wanted to visualize what the block sides would look like next to them. Also that 82% number was a bit depressing and my original algorithm was kinda bad. So while I was building a tool to test various fonts and images I did a quick modification to my algorithm to randomize the distribution of letters and apply the A-Z 0-9 and only 5 sides for letters and numbers. I set it to work using my gaming computer and let it run for a few hours.

While it was running I finished off this little tool so we could get an svg and test font/image combos for cutting on the glowforge.
https://park9140.github.io/blockmaker/

After running the randomized face generator for a few hours I landed with 99.1% of all words on my 26 blocks.

This is my set (minus the pictures I chose for the final block sides)

29 Likes

First of all, way to deep dive into the project!

How big are the final cubes? How old is your daughter? Is she of spelling age, or are you just planning ahead?

4 Likes

Way to lean into it man. The research into the design is a thing of beautyâ€¦ let alone the result.
And thanks for that!

3 Likes

Wow, such dedication! What a great learning tool for your daughter!

2 Likes

Nice work! Looks you needed the tray out for thatâ€¦

1 Like

1.6inch taking the bed out and focusing was essential

Daughter is 11 months so not spelling age but she is starting in on stacking now. More of an obsession strikes sort of scenario.

6 Likes

Oh sheâ€™s younger than I expected! Thatâ€™s cute. Sheâ€™ll be spelling before you know it!

Do keep an eye on her with those, though. I think thatâ€™s small enough to be considered a choking hazard. Better to spell with than to nibble on!

1 Like

Wow! Quite the job putting these together! Very cool!

Thank you for all your work on this.

Thanks for thisâ€¦been wanted to do blocks for a little while now and this help alot, especially when I know three new babies just popped into this world. Decided to put in the 7 chakras, Chinese zodiac and and the birth zodiacs. Think they came out pretty cool.