I'm working on an opensource grammar tool for OpenOffice, and one of the Java based rules I want to modify is having a problem I can't figure out. This Java rule should check the whole document for...