OK, everything is fine on the side of code, only my idea was different. Namely, the paragraph-level rule should check whether it has achieved the end of paragraph. Look at UnpairedQuotesBracketsRule.reset() and how it uses clearMatches() and endofParagraph member. Basically, the state should be handled by the paragraph-level rule by using the internal list of paragraph-level matches.
Re-assigning, I think it's quite easy to use the concept just by coping and pasting the code from UQBRule. I tried other solutions but I didn't succeed in making them work under OOo.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm note sure - WordCoherencyRule isn't a paragraph rule, it's a document-level rule. I don't see yet how the concept you suggest can be applied to the "end of text" situation. Could you maybe explain that in more detail?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, everything is fine on the side of code, only my idea was different. Namely, the paragraph-level rule should check whether it has achieved the end of paragraph. Look at UnpairedQuotesBracketsRule.reset() and how it uses clearMatches() and endofParagraph member. Basically, the state should be handled by the paragraph-level rule by using the internal list of paragraph-level matches.
Re-assigning, I think it's quite easy to use the concept just by coping and pasting the code from UQBRule. I tried other solutions but I didn't succeed in making them work under OOo.
I'm note sure - WordCoherencyRule isn't a paragraph rule, it's a document-level rule. I don't see yet how the concept you suggest can be applied to the "end of text" situation. Could you maybe explain that in more detail?
report moved to https://github.com/languagetool-org/languagetool/issues/194