Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a piece of software that will do keyword analysis on a batch of Microsoft Word files? In other words, I would simply like a word count on all words used. The objective is to identify keywords as the basis for creating a taxonomy.

share|improve this question
This is very open-ended: What type of analysis did you want? – Clare Macrae Oct 11 '11 at 18:17
updated question to be more specific. – mmcglynn Oct 11 '11 at 18:24

I use a Python script that uses the module (see here) to read Word files and process the individual words for a related task. The key bits are in the following code (which only reads one .docx file given as the first command line argument, but could easily be expanded to count words in many files:

from docx import *
import sys

    document = opendocx(sys.argv[1])
    print('Could not open '+sys.argv[1])

## Fetch all the text out of the document       
paratextlist = getdocumenttext(document)    

count = {}
for line in paratextlist:
    for word in line.rstrip().split():
        count{word} = count.get(word,0) + 1
share|improve this answer

How about WordStat ?

share|improve this answer
Exactly right. Quite pricey though at ~$3000. – mmcglynn Oct 11 '11 at 20:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .