
Mike Kinde, who writes an incredible blog over at Ideas Illustrated, recently explored a way to see, at a glance, the historical origins of different words. Specifically, he wanted to computationally highlight text based on which words came from specific languages.
So that's what Kinde did. He constructed a simple program that takes text and highlights it based on language origin. Here is an excerpt from Tom Sawyer, where the colors represent Old English (pink), Middle English (red), Anglo-French (orange), Old French (light orange), Middle French (pale orange), and Classical and Medieval Latin (both yellow), Gallo-Roman and Middle Low German (both colored in gray), and American (green):
Tomgaveupthebrushwithreluctanceinhisface, butalacrityinhisheart. AndwhilethelatesteamerBigMissouriworkedandsweatedinthesun, theretiredartistsatonabarrelintheshadecloseby, dangledhislegs, munchedhisapple, andplannedtheslaughterofmoreinnocents. Therewasnolackofmaterial; boyshappenedalongeverylittlewhile; theycametojeer, butremainedtowhitewash. BythetimeBenwasfaggedout, TomhadtradedthenextchancetoBillyFisherforakite, ingoodrepair; andwhenheplayedout, JohnnyMillerboughtinforadeadratandastringtoswingitwith — andsoon, andsoon, hourafterhour. Andwhenthemiddleoftheafternooncame, frombeingapoorpoverty-strickenboyinthemorning, Tomwasliterallyrollinginwealth. Hehadbesidethethingsbeforementioned, twelvemarbles, partofajews-harp, apieceofbluebottle-glasstolookthrough, aspoolcannon, akeythatwouldn’tunlockanything, afragmentofchalk, aglassstopperofadecanter, atinsoldier, acoupleoftadpoles, sixfire-crackers, akittenwithonlyoneeye, abrassdoor-knob, adog-collar — butnodog — thehandleofaknife, fourpiecesoforange-peel, andadilapidatedoldwindowsash.