There are plenty of Shakespearean insult generators out there as webpages, but here's an implementation you can keep in you pocket.... (but someone came along and invented the smartphone, which sort of renders it all academic ... never mind... carry on!)
It's basically an exercise in cramming lots of text into the PROGMEM of an Arduino Uno.
There are 3 words stored, each having 53 variants, giving a total of 148,877 different insults....
Compiling for Uno, shows us the efficient use of memory ..
Sketch uses 4658 bytes (14%) of program storage space. Maximum is 32256 bytes.
Global variables use 85 bytes (4%) of dynamic memory, leaving 1963 bytes for local variables. Maximum is 2048 bytes
Code can be found on my Github ... https://github.com/andydoswell/Shakespearean-Insult-Generator
Have fun !