Expand description
heckle is a meme case conversion library.
This library exists to facilitate lulz with meme cases, such as spONgEBoB caSE and BILLY MAYS MODE. It is intended to be unicode-aware, internally consistent-ish, and reasonably useless.
§Definition of a word boundary
Unlike the popular and useful heck library, we do not care about word boundaries. In fact, in BILLY MAYS MODE, we drop non-alphabetic, non-whitespace characters because we don’t think it matters anyway.
§Cases contained in this library:
§sPoNGeBoB CAsE
Randomly alternates letter casing with no more than 3 consecutive same-case characters. If you want more than 3 characters, too bad, I hardcoded it. Also it’s not really random because I hardedcoded the RNG to always be seeded with 42. That’s the answer to life, the universe, and everything, and I think it’s the answer to meme case RNG seeding, too.
use heckle::ToSpongebobCase;
assert_eq!("hello world".to_spongebob_case(), "HELlo wORLd");§BILLY MAYS MODE
Uppercases every character that has a case, dropping non-alphabetic, non-whitespace characters. BUT WAIT! you might say; well, too bad, no more.
use heckle::ToBillyMaysMode;
assert_eq!("wait, there's more!!!".to_billy_mays_mode(), "WAIT THERES MORE");§A Note on AI Usage
This is pure vibe-coded slop. Thanks, Claude!