Numeronyms are fun, but they have one major problem: namespace collision.

What is a11y? Is it accessibility? Associatively? Axiomatically? Autobiography?

This is obviously a problem that needs solving.

My solution? SHAsum hashing.

We can avoid the ambiguity of "a11y" with this unique, cryptographically sound alternative:

Accessibility? a884a5f3609f2cca635fed56d4ec5795da56fb970y

Axiomatically? a20c4bcee8f977a3f5a3b6b499d52d7dd32584771y

Simple, easy to visually distinguish, everyone wins.

I was actually racking my brain for 'starts with a, ends in y, same length' words to make this dumb joke but then I remembered that /usr/share/dict has _huge_ flat-file lists of words of many languages in it, so I could just get them from that?

Ninety seconds of grep, awk and sort later, there it is. For future reference there's 223 of them, alphabetically going from abdominoscopy to axiomatically.

Y'all these computers have so much in them already. _So much_. But nobody knows.

@mhoye 10 seconds of using a dictionary: https://www.onelook.com/?w=a???????????y&ssbp=1

However, being able to code this yourself so quickly is a very useful skill. The moment you have a query that isn't covered by an existing tool, you can probably do it in 10 to 30 extra seconds, whereas I'd spend at least 10 minutes on getting a first test version of the scrip running. In that light, solving it with programming is worth it just to practice that skill — consider me motivated to try that more often 😺.

Words matching "a???????????y" - OneLook

@nexvie

> time grep "^a..........y$" words

real 0m0.076s
user 0m0.062s
sys 0m0.014s

A 150x improvement on your search, and your search is including incorrect results like "atlantic city" and "ash wednesday".

@mhoye @nexvie At that point I think it'd be only fair to include the 5 seconds it takes to type out the command and double-check that you got the right number of dots 😂 (or "^a.{11}y$" works with -E or -P)