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.


I use a Python script that uses the docx.py 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

How about WordStat ?

  • Exactly right. Quite pricey though at ~$3000.
    – mmcglynn
    Oct 11 '11 at 20:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.