Update: I wrote an improved version in Python, read more here.

When I was writing my thesis a few years ago, I wrote a script to find the word distance for each word, and signal words that are close together. I used this to find obvious flaws in texts without having to read it over every time. Especially if you are revising a text a lot, this might be useful to see if you need to use a thesaurus somewhere.