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.