Well, end of a lunch hour of coding. I the basic scope operations working via TDD. This lets me say "only do this analysis on content" or "look at only the first word of each paragraph". It uses either a keyword (content, lookup, project) or XPath.
To the first word would be `/file[is-content()/para/word[position()=1]`. You wouldn't actually use that, but you could analyze each paragraph separately (`/file[is-content()/para`).
Author Intrusion Show more
The plugins will have also a "select", so looking at the first word of every paragraph in a file would be:
scope: content
select: //para/word[position()=1]
To look at previous chapters, you would just change scope from "content" to "project".
I'm still planning on making the XSLT functions DI, so I can later write a function like `soundex()` that would let me compare like-sounding words that are too close to each other.
select: //para/soundex(word)