Marking Repeated Words

One of the first things every writer learns—probably in high school—is to avoid using the same word repeatedly in close proximity to each other. I’m really strict about that to the point where I try to avoid using the same word close together even twice. For me at least, it’s hard to get this right the first time. When I first read a post right after reading it, there’s almost always some repeats that I have to fix up.

Marcin Borkowski has the same problem. Borkowski’s problem is even greater since he’s often writing in English, which is not his first language. To help with that problem he wrote a bit of code to find out how far away from a given word other instances of that word are. In addition, he highlights those words giving him a nice visual image of how close the collisions are.

The code is reasonably short so you can just suck it into your own init.el if you’re interested in a tool like this. A year and a half ago, I wrote about Albert Heinle who had a similar problem and also made his code available.

Other editors may or may not have a function to help with discovering repeated words but how many can let you add that functionality to the editor on your own? Even if an editor claims to be “extensible” how many have an extension language powerful enough to do the job easily? This is Irreal so you all know the answer.

This entry was posted in General and tagged . Bookmark the permalink.