Another productive lunch hour on #AuthorIntrusion while working on echo word detection.
I got it to correctly detect the same word used within a given range. With these plugin settings:
- scope: content
select: //token[@l>3]
within: 3
warning: 1
error: 2
And the file:
one two one three four one
It produces a warning on the first and third "one", an error on the second "one".
For xpath, I'll probably change it to `//token[length()>3]` because it's prettier.
Author Intrusion Show more
Last one. Why I'm doing this. I got into a discussion with a coworker about it.
Grammar checkers are great, but they don't look for stylistic issues. So reducing adverbs, detecting echo words ("she jumped on the jumper, jumping on his knee to shatter the bone"), my personal love affair with gerunds, or pointing out when I accidentally used present tense in my novel.
That's what AI is mainly for. To catch those things that an editor would catch.