Python script to generate GUIDs with words, looking for bawdy text. Also an excuse to kick the tires on python. An uninterrupted run is s to the l to the o to the w.
My motiviation was to algorithmically find the perfect GUID (or GUIDs), akin to the perfect 32 bit hex value, 0xdeadbeef.
- python 3
pip install english_words alive_progress
bawdyGUID.py [OUTFILE]
Recurse through an english dictionary and add words along with 1337 substitutions. 1337 substitutions are iterated through and every combination is applied (see guidify). processGuidSentence receives each GUID 'sentence' and outputs a dict of the sentence and attributes (are our words aligned on GUID dashes, etc.), so subjective judgements can be made (would a screen cap of that be a dict pic?).
flowchart TD
Start --> guidify
guidify --> lcGuidifiedWords
lcGuidifiedWords --> addWords
addWords --> addWords
addWords --> processGuidSentence
- Uses code from https://nedbatchelder.com/text/hexwords.html. Inspired by that project too.
- Uses cursed words from https://www.cs.cmu.edu/~biglou/resources/bad-words.txt
- guid word sounds like squidward. that's a feature.
- it's pronounced gwid, not goo-id. fight me.