For my second A to Z assignment, I at first wanted to create an Asymmetry generator, a la Mac Low, that took the line “we the people” and created acrostic poems based on the text of the American Constitution, but that proved a little beyond my programming skills.
I liked the idea of playing with the Constitution because the text itself is so venerated, its meanings so closely guarded and carefully curated and protected from alteration by almost insurmountable rules. Which got me thinking, what if I boiled it down and condensed it, would it still preserve any of its meaning?
Semantics are beyond the scope of the class (and certainly beyond the scope of my meager coding skills) but statistically, longer words tend to carry more meaning, so I designed a program to condense each line of text it receives into its two longest words, reproduced not in order of appearance but in order of length.
The code works on any text, and I fed the entire Constitution into it, which produced surprisingly legible and amusing results. I was especially pleased with its distillation of the Bill of Rights: