Hi Brian,
Your contributors might not consider Pig Latin, or anything else that can
be easily turned back into plaintext, to be "not releasing their actual
records." :-)
Here's a snippet that will completely randomize the contents of an
arbitrary string while replacing the general flow (vowels replaced with
vowels, consonants replaced with consonants (with case retained in both
instances), digits replaced with digits, and everything else is left alone.
https://gist.github.com/1468557
Here's your NASA sample run through the randomizer:
Vny RUPY Xsase Pwuccpo Lnipbaxjew fipewsof eqfugvof if Xeleufe 60, 1295
wtos Mvimo Jlehcve Lbobvezbyh vlozi odohl 77 cyfuzbq ilne ybl sponsf,
meojacz gu cmi piyngf ed abr fotor gloc cumcetj. Ruzildasfebaod if fdu
ejsosa rumozzi ginaq arhan or A-pont kaon ew eqv jejlk vutuq kalsaj roumhyl
teopyf is midqokz. Kda mitoxhuh rugoxhal on pxu pelqeseul az msu Tawivg
Luwjutmaol, i mqubyip wulvyffaak evviivhek qe Afykox Cfaron Mkefyfipq
Kybuvz Riufyl ba awwevrogixe bde uhliwekp. Hsu Gqugydatgyyp Qemgybmuix
diytr tvix VYXE'h irjybefakiyzil cibkeco udx numojuaf-pogezn dquziqpyb fod
heip a fee lannjuluxymk qejvet la vmy ymriqexc. BUJI fegucuzz syj wviwx
wmin cyvvgintoj Jufhyq Gnoeham'v dosyzv ar xzy detib xyzvyf raazkapk
lizniutyp u cypimsiufte zetesjzesmam dgyj ag cki U-juzrm, dys gnai jausul
gi iqlbyhf es ksumapfu. Bsau ittu qojsarahlih mozpyhbb dpon okxotuosd ebuih
cde xoqhewd ow koahznygl xuwoh by xce huf jujjybexohyp og xjoc gagnysx.
On Fri, Dec 9, 2011 at 3:17 PM, BRIAN TINGLE <
[log in to unmask]> wrote:
> Hi,
>
> I'm now in the group that produces XTF, and for XTF4.0, I'm thinking about
> updating the EAD XSLT based on the Online Archive of California's
> stylesheets.
>
> For our EAD samples that we distribute with the XTF tutorial, we are using
> 6 EAD files from the library of congress (which presumably are public
> domain).
>
> I'd like to start of a collection of pathological EAD examples that we
> have the rights to redistribute with the XTF tutorials and to use for
> testing.
>
> Anticipating that potential contributors might not want to release their
> actual records for inclusion in an open source project; I hacked a little
> script to systematically change names and nouns to pig latin
>
> https://gist.github.com/1429538
>
> Here is a sample run;
>
> Input: (from http://www.oac.cdlib.org/findaid/ark:/13030/kt3580374v/ )
>
> The NASA Space Shuttle Challenger disaster occurred on January 28, 1986
> when Space Shuttle Challenger broke apart 73 seconds into its flight,
> leading to the deaths of its seven crew members. Disintegration of the
> entire vehicle began after an O-ring seal in its right solid rocket booster
> failed at liftoff. The disaster resulted in the formation of the Rogers
> Commission, a special commission appointed by United States President
> Ronald Reagan to investigate the accident. The Presidential Commission
> found that NASA's organizational culture and decision-making processes had
> been a key contributing factor to the accident. NASA managers had known
> that contractor Morton Thiokol's design of the solid rocket boosters
> contained a potentially catastrophic flaw in the O-rings, but they failed
> to address it properly. They also disregarded warnings from engineers about
> the dangers of launching posed by the low temperatures of that morning.
>
> output:
>
> The Nasaay Acespay Uttleshay Allengerchay isasterday occurred on Anuaryjay
> 28, 1986 when Acespay Uttleshay Allengerchay okebray apartway 73 econdsays
> into its flight, leading to the eathdays of its seven ewcray embermays.
> Isintegrationday of the entire ehiclevay began after an O-ring ealsay in
> its ightray solid ocketray oosterbay failed at iftofflay. The isasterday
> resulted in the ormationfay of the Ogersray Ommissioncay, a special
> ommissioncay appointed by Itedunay States Esidentpray Onaldray Eaganray to
> investigate the accidentway. The Esidentialpray Ommissioncay found that
> Nasaay's organizational ulturecay and decision-making ocessprays had been a
> key ontributingcay actorfay to the accidentway. Nasaay anagermays had known
> that ontractorcay Ortonmay Iokolthay's esignday of the solid ocketray
> oosterbays contained a potentially catastrophic awflay in the ingO-rays,
> but they failed to addressway it properly. They also disregarded arningways
> from engineerways about the angerda!
> ys of launching posed by the low emperaturetays of that orningmay.
>
> Does anyone have any thoughts or feedback on this? Is this totally silly?
> Is there something besides pig latin that I could transform the words to?
> Any obvious ways I could improve the python?
>
|