Search code examples
batch-fileflesch-kincaid

Batch process pdfs to do a Flesch-Kincaid readability test


I have about 1800 PDF files that I have to extract Flesch-Kincaid grade level scores from. Does anyone have any ideas as to how I should best approach this? I need a score per PDF.


Solution

  • If flesh.exe takes a filename and outputs the results to stdout then this should run it on every PDF file.

    @echo off
    for %%a in (*.pdf) do (
    flesh.exe "%%a"  >> file.log
    )