Patent attributes
Techniques are provided for composing and testing grammar rules that are configured to provide feedback on violations of target grammar guidelines in the text of documents. Tests may be performed to determine whether a new grammar rule produces false positives, is redundant or conflicts with other rules, or is expensive to apply to a document. A user may test the rule, in isolation or with other rules, on a batch of documents. A display of a summary of feedback that is generated in the batch of documents by the rules is provided. The user may also apply a rule to documents submitted for feedback as a hidden rule. Any violations of a hidden rule are recorded, but feedback on the violations is not provided in submitted documents. Furthermore, a user may indicate a level for a rule, which may control the set of documents to which the rule is applied.