You are not born into a stale world. You are young
          in a young world that will bloom and burst
          countlessly before you find even one thing truly
          changed, let alone faded;
and if one born twenty thousand years from now,
          sighing, feels the world has grown unalterable
          and iron by simple, immense precedent, they
          would still be no less wrong than are we to fall
          for that ecclesiastic bluff that the world was
          born already dusking in the inane light of the
          very final afternoon,
for even if, sifting an echo from some chance wind, we
          discern the first song of the first bard,
or if, returned to earth some loud midnight by purple
          bolt comes to us a primordial dance epic still
          asmolder with deathless syncopation;
if by wild hunch and dread knack we decode a
          metabolic acrostic written on our heartbeats;
yes, even if by any such heliotrope we behold that the
          roots of all tongues are braided fast to the brain
          with one single etymon immortal and unbreakable,
we would be fools to feel we cannot burn with greater
          light than did those who first tore language out
          of chance and filth one hundred ages ago.

Though I feel sure that someone somewhere is up to something like this, I'd like to record the idea before I forget it:

So, you want to get a sense of the extent to which a certain word or notion or feeling or whatever is present or pervasive in a given work. You want to know, perhaps, how pervasive stones are in the Comedy.

1. Thesaurus "stone," preferably in a reference work that will give you adjectives like "stony" and verbs like "petrify."
2. Take all of those words and use wiktionary or another work to derive all of their conjugations or declensions and other changes.
3. Search your text for all of these terms to determine what proportion of the words* (or even letters) in the work are related to your original term.

Note: * You might want to subtract all function words from consideration as part of the total length of the text.

I was also interested in doing this or something like it with Indo-European roots: take a root, find all the words in your modern language that descend from it, conjugate/decline them all, and then search the work.

You could also do permutations where you feed certain thesaurus results back into the thesaurus to branch out more, or even try some complex rules to say which of the words the thesaurus gives will be accepted. For instance, among the results for "stone" might be "pebble" and "masonry." If you run them back into the thesaurus, you'd probably find that "pebble" shares more synonyms with "stone" than does "masonry."

It's obviously a very inexact science, but I think it's a neat idea and I've never heard of anyone doing it.

With such an index in place, you could also track the presence of a word/concept/figure over the course of the text. For instance, in Macbeth, the presence of "blood" probably grows over the course of the play. The potential to visualize this sort of thing in literature strikes me as super-sweet.