Spaces:
Sleeping
Sleeping
Update patterns.json
Browse files- patterns.json +35 -35
patterns.json
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
"pattern": "\\bU\\.S\\.C\\b",
|
33 |
"description": "U.S.C should have a final period (U.S.C.)",
|
34 |
"is_error": true,
|
35 |
-
"replacement": "U.S.C.
|
36 |
},
|
37 |
{
|
38 |
"_comment": "Handle Technical Standard Order acronyms",
|
@@ -51,21 +51,21 @@
|
|
51 |
"pattern": "\\bCFR Part\\b",
|
52 |
"description": "CFR Part should be CFR part (lowercase)",
|
53 |
"is_error": true,
|
54 |
-
"replacement": "CFR part (per FAA Order 1320.46)"
|
55 |
},
|
56 |
{
|
57 |
"_comment": "Per the GPO Style Manual",
|
58 |
"pattern": "\\bC\\.F\\.R\\.\\b",
|
59 |
"description": "C.F.R. should be CFR (per the GPO Style Manual)",
|
60 |
"is_error": true,
|
61 |
-
"replacement": "CFR (per the GPO Style Manual)"
|
62 |
},
|
63 |
{
|
64 |
"_comment": "Replace ACO with Certification Branch",
|
65 |
"pattern": "\\bACO\\b",
|
66 |
"description": "ACO should be replaced with Certification Branch",
|
67 |
"is_error": true,
|
68 |
-
"replacement": "Certification Branch"
|
69 |
},
|
70 |
{
|
71 |
"pattern": "\\b(?:[Ww]e)\\b",
|
@@ -166,12 +166,12 @@
|
|
166 |
},
|
167 |
{
|
168 |
"pattern": "\\babove\\b",
|
169 |
-
"description": "Avoid using 'above' for references",
|
170 |
"is_error": true
|
171 |
},
|
172 |
{
|
173 |
"pattern": "\\bbelow\\b",
|
174 |
-
"description": "Avoid using 'below' for references",
|
175 |
"is_error": true
|
176 |
},
|
177 |
{
|
@@ -181,22 +181,22 @@
|
|
181 |
},
|
182 |
{
|
183 |
"pattern": "\\bpreceding\\b",
|
184 |
-
"description": "Avoid using 'preceding' for references; specify the section or item explicitly",
|
185 |
"is_error": true
|
186 |
},
|
187 |
{
|
188 |
"pattern": "\\bfollowing\\b",
|
189 |
-
"description": "Avoid using 'following' for references; specify the section or item explicitly",
|
190 |
"is_error": true
|
191 |
},
|
192 |
{
|
193 |
"pattern": "\\blatter\\b",
|
194 |
-
"description": "Avoid using 'latter'; specify the item explicitly",
|
195 |
"is_error": true
|
196 |
},
|
197 |
{
|
198 |
"pattern": "\\bformer\\b",
|
199 |
-
"description": "Avoid using 'former'; specify the item explicitly",
|
200 |
"is_error": true
|
201 |
},
|
202 |
{
|
@@ -226,32 +226,32 @@
|
|
226 |
},
|
227 |
{
|
228 |
"pattern": "\\bper above\\b",
|
229 |
-
"description": "Avoid using 'per above';
|
230 |
"is_error": true
|
231 |
},
|
232 |
{
|
233 |
"pattern": "\\bas mentioned earlier\\b",
|
234 |
-
"description": "Avoid using 'as mentioned earlier';
|
235 |
"is_error": true
|
236 |
},
|
237 |
{
|
238 |
"pattern": "\\bas stated earlier\\b",
|
239 |
-
"description": "Avoid using 'as stated earlier';
|
240 |
"is_error": true
|
241 |
},
|
242 |
{
|
243 |
"pattern": "\\bin question\\b",
|
244 |
-
"description": "Avoid using 'in question'; specify the item explicitly",
|
245 |
"is_error": true
|
246 |
},
|
247 |
{
|
248 |
"pattern": "\\bafore\\b",
|
249 |
-
"description": "Avoid using archaic terms like 'afore'; specify the item explicitly",
|
250 |
"is_error": true
|
251 |
},
|
252 |
{
|
253 |
"pattern": "\\b(may|might|could|should|possibly|likely)\\b",
|
254 |
-
"description": "Avoid vague terms; use definitive language unless conditional meaning is intended",
|
255 |
"is_error": true
|
256 |
},
|
257 |
{
|
@@ -270,7 +270,7 @@
|
|
270 |
"pattern": "\\b(?:pursuant to|in accordance with|in compliance with)\\b",
|
271 |
"description": "Use simpler alternatives like 'under' or 'following'",
|
272 |
"is_error": true,
|
273 |
-
"replacement": "under (per
|
274 |
},
|
275 |
{
|
276 |
"_comment": "Per Document Drafting Handbook",
|
@@ -528,7 +528,7 @@
|
|
528 |
},
|
529 |
{
|
530 |
"pattern": "\\b(\\d+)\\s*to\\s*(\\d+)\\b",
|
531 |
-
"description": "Ensure numeric ranges use a dash (e.g., '10-20') instead of 'to'",
|
532 |
"is_error": true
|
533 |
}
|
534 |
],
|
@@ -743,41 +743,41 @@
|
|
743 |
{
|
744 |
"_comment": "Per GPO Style Manual",
|
745 |
"pattern": "\\b(\\d+)\\s+(?:U\\.S\\.C\\.|CFR)\\s+(§|§§)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
746 |
-
"description": "
|
747 |
"is_error": true,
|
748 |
-
"replacement": "$1 $2
|
749 |
},
|
750 |
{
|
751 |
"_comment": "Per Document Drafting Handbook",
|
752 |
"pattern": "\\b(?:refer|reference|see)\\s+(?:section|paragraph|subsection|clause)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
753 |
-
"description": "
|
754 |
"is_error": true,
|
755 |
-
"replacement": "see
|
756 |
}
|
757 |
],
|
758 |
"regulatory_analysis": [
|
759 |
{
|
760 |
"_comment": "Per Document Drafting Handbook",
|
761 |
"pattern": "\\b(?:comment|commenter|commenting)\\b",
|
762 |
-
"description": "Ensure proper handling of public comment references",
|
763 |
"is_error": true
|
764 |
},
|
765 |
{
|
766 |
"_comment": "Per Document Drafting Handbook",
|
767 |
"pattern": "\\b(?:cost-benefit|regulatory impact|economic impact)\\b",
|
768 |
-
"description": "Ensure proper handling of regulatory analysis terms",
|
769 |
"is_error": true
|
770 |
},
|
771 |
{
|
772 |
"_comment": "Per Document Drafting Handbook",
|
773 |
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\b",
|
774 |
-
"description": "Ensure proper handling of regulatory analysis terms",
|
775 |
"is_error": true
|
776 |
},
|
777 |
{
|
778 |
"_comment": "Per Document Drafting Handbook",
|
779 |
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\s+(?:of|for|under)\\b",
|
780 |
-
"description": "Ensure proper handling of regulatory analysis terms",
|
781 |
"is_error": true
|
782 |
}
|
783 |
],
|
@@ -785,19 +785,19 @@
|
|
785 |
{
|
786 |
"_comment": "Per Document Drafting Handbook",
|
787 |
"pattern": "\\b(?:except|unless|provided that)\\b",
|
788 |
-
"description": "Ensure proper formatting of regulatory exceptions",
|
789 |
"is_error": true
|
790 |
},
|
791 |
{
|
792 |
"_comment": "Per Document Drafting Handbook",
|
793 |
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\b",
|
794 |
-
"description": "Ensure proper formatting of regulatory exceptions",
|
795 |
"is_error": true
|
796 |
},
|
797 |
{
|
798 |
"_comment": "Per Document Drafting Handbook",
|
799 |
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\s+(?:for|under|in)\\b",
|
800 |
-
"description": "Ensure proper formatting of regulatory exceptions",
|
801 |
"is_error": true
|
802 |
}
|
803 |
],
|
@@ -805,37 +805,37 @@
|
|
805 |
{
|
806 |
"_comment": "Per Document Drafting Handbook",
|
807 |
"pattern": "\\b(?:compliance|enforcement)\\s+(?:date|deadline|requirement|action)\\b",
|
808 |
-
"description": "Ensure proper specification of compliance and enforcement terms",
|
809 |
"is_error": true
|
810 |
},
|
811 |
{
|
812 |
"_comment": "Per Document Drafting Handbook",
|
813 |
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:period|schedule|plan)\\b",
|
814 |
-
"description": "Ensure proper specification of implementation and transition terms",
|
815 |
"is_error": true
|
816 |
},
|
817 |
{
|
818 |
"_comment": "Per Document Drafting Handbook",
|
819 |
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
820 |
-
"description": "Ensure proper specification of compliance dates",
|
821 |
"is_error": true
|
822 |
},
|
823 |
{
|
824 |
"_comment": "Per Document Drafting Handbook",
|
825 |
"pattern": "\\b(?:compliance|enforcement)\\s+(?:with|under|of)\\b",
|
826 |
-
"description": "Ensure proper specification of compliance and enforcement terms",
|
827 |
"is_error": true
|
828 |
},
|
829 |
{
|
830 |
"_comment": "Per Document Drafting Handbook",
|
831 |
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:of|for|under)\\b",
|
832 |
-
"description": "Ensure proper specification of implementation and transition terms",
|
833 |
"is_error": true
|
834 |
},
|
835 |
{
|
836 |
"_comment": "Per Document Drafting Handbook",
|
837 |
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
838 |
-
"description": "Ensure proper specification of compliance dates",
|
839 |
"is_error": true
|
840 |
}
|
841 |
]
|
|
|
32 |
"pattern": "\\bU\\.S\\.C\\b",
|
33 |
"description": "U.S.C should have a final period (U.S.C.)",
|
34 |
"is_error": true,
|
35 |
+
"replacement": "U.S.C."
|
36 |
},
|
37 |
{
|
38 |
"_comment": "Handle Technical Standard Order acronyms",
|
|
|
51 |
"pattern": "\\bCFR Part\\b",
|
52 |
"description": "CFR Part should be CFR part (lowercase)",
|
53 |
"is_error": true,
|
54 |
+
"replacement": "CFR part (per Document Drafting Handbook & FAA Order 1320.46)"
|
55 |
},
|
56 |
{
|
57 |
"_comment": "Per the GPO Style Manual",
|
58 |
"pattern": "\\bC\\.F\\.R\\.\\b",
|
59 |
"description": "C.F.R. should be CFR (per the GPO Style Manual)",
|
60 |
"is_error": true,
|
61 |
+
"replacement": "CFR (per the GPO Style Manual & FAA Order 1320.46)"
|
62 |
},
|
63 |
{
|
64 |
"_comment": "Replace ACO with Certification Branch",
|
65 |
"pattern": "\\bACO\\b",
|
66 |
"description": "ACO should be replaced with Certification Branch",
|
67 |
"is_error": true,
|
68 |
+
"replacement": "Certification Branch (as of 2023 AIR Reorganization)"
|
69 |
},
|
70 |
{
|
71 |
"pattern": "\\b(?:[Ww]e)\\b",
|
|
|
166 |
},
|
167 |
{
|
168 |
"pattern": "\\babove\\b",
|
169 |
+
"description": "Avoid using 'above' for references; specify the section or item explicitly (per Document Drafting Handbook)",
|
170 |
"is_error": true
|
171 |
},
|
172 |
{
|
173 |
"pattern": "\\bbelow\\b",
|
174 |
+
"description": "Avoid using 'below' for references; specify the section or item explicitly (per Document Drafting Handbook)",
|
175 |
"is_error": true
|
176 |
},
|
177 |
{
|
|
|
181 |
},
|
182 |
{
|
183 |
"pattern": "\\bpreceding\\b",
|
184 |
+
"description": "Avoid using 'preceding' for references; specify the section or item explicitly (per Document Drafting Handbook)",
|
185 |
"is_error": true
|
186 |
},
|
187 |
{
|
188 |
"pattern": "\\bfollowing\\b",
|
189 |
+
"description": "Avoid using 'following' for references; specify the section or item explicitly (per Document Drafting Handbook)",
|
190 |
"is_error": true
|
191 |
},
|
192 |
{
|
193 |
"pattern": "\\blatter\\b",
|
194 |
+
"description": "Avoid using 'latter'; specify the section or item explicitly (per Document Drafting Handbook)",
|
195 |
"is_error": true
|
196 |
},
|
197 |
{
|
198 |
"pattern": "\\bformer\\b",
|
199 |
+
"description": "Avoid using 'former'; specify the section or item explicitly (per Document Drafting Handbook)",
|
200 |
"is_error": true
|
201 |
},
|
202 |
{
|
|
|
226 |
},
|
227 |
{
|
228 |
"pattern": "\\bper above\\b",
|
229 |
+
"description": "Avoid using 'per above'; specify the section or item explicitly (per Document Drafting Handbook)",
|
230 |
"is_error": true
|
231 |
},
|
232 |
{
|
233 |
"pattern": "\\bas mentioned earlier\\b",
|
234 |
+
"description": "Avoid using 'as mentioned earlier'; specify the section or item explicitly (per Document Drafting Handbook)",
|
235 |
"is_error": true
|
236 |
},
|
237 |
{
|
238 |
"pattern": "\\bas stated earlier\\b",
|
239 |
+
"description": "Avoid using 'as stated earlier'; specify the section or item explicitly (per Document Drafting Handbook)",
|
240 |
"is_error": true
|
241 |
},
|
242 |
{
|
243 |
"pattern": "\\bin question\\b",
|
244 |
+
"description": "Avoid using 'in question'; specify the section or item explicitly (per Document Drafting Handbook)",
|
245 |
"is_error": true
|
246 |
},
|
247 |
{
|
248 |
"pattern": "\\bafore\\b",
|
249 |
+
"description": "Avoid using archaic terms like 'afore'; specify the section or item explicitly (per Document Drafting Handbook)",
|
250 |
"is_error": true
|
251 |
},
|
252 |
{
|
253 |
"pattern": "\\b(may|might|could|should|possibly|likely)\\b",
|
254 |
+
"description": "Avoid vague terms; use definitive language unless the conditional meaning is intended",
|
255 |
"is_error": true
|
256 |
},
|
257 |
{
|
|
|
270 |
"pattern": "\\b(?:pursuant to|in accordance with|in compliance with)\\b",
|
271 |
"description": "Use simpler alternatives like 'under' or 'following'",
|
272 |
"is_error": true,
|
273 |
+
"replacement": "under (per FAA Order 1320.46)"
|
274 |
},
|
275 |
{
|
276 |
"_comment": "Per Document Drafting Handbook",
|
|
|
528 |
},
|
529 |
{
|
530 |
"pattern": "\\b(\\d+)\\s*to\\s*(\\d+)\\b",
|
531 |
+
"description": "Ensure numeric ranges use a dash (e.g., '10-20') instead of 'to' (per GPO Style Manual)",
|
532 |
"is_error": true
|
533 |
}
|
534 |
],
|
|
|
743 |
{
|
744 |
"_comment": "Per GPO Style Manual",
|
745 |
"pattern": "\\b(\\d+)\\s+(?:U\\.S\\.C\\.|CFR)\\s+(§|§§)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
746 |
+
"description": "Format citations to U.S. Code or CFR with correct spacing and symbols, e.g., 14 CFR § 21.1 or 49 U.S.C. §§ 44701–44704",
|
747 |
"is_error": true,
|
748 |
+
"replacement": "$1 $2 $3 $4 (per GPO Style Manual & Document Drafting Handbook)"
|
749 |
},
|
750 |
{
|
751 |
"_comment": "Per Document Drafting Handbook",
|
752 |
"pattern": "\\b(?:refer|reference|see)\\s+(?:section|paragraph|subsection|clause)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
753 |
+
"description": "Replace narrative references to numbered legal sections with standardized cross-references, e.g., 'see § 21.1'",
|
754 |
"is_error": true,
|
755 |
+
"replacement": "see § $1 (per GPO Style Manual & Document Drafting Handbook)"
|
756 |
}
|
757 |
],
|
758 |
"regulatory_analysis": [
|
759 |
{
|
760 |
"_comment": "Per Document Drafting Handbook",
|
761 |
"pattern": "\\b(?:comment|commenter|commenting)\\b",
|
762 |
+
"description": "Ensure proper handling of public comment references (per Document Drafting Handbook)",
|
763 |
"is_error": true
|
764 |
},
|
765 |
{
|
766 |
"_comment": "Per Document Drafting Handbook",
|
767 |
"pattern": "\\b(?:cost-benefit|regulatory impact|economic impact)\\b",
|
768 |
+
"description": "Ensure proper handling of regulatory analysis terms (per Document Drafting Handbook)",
|
769 |
"is_error": true
|
770 |
},
|
771 |
{
|
772 |
"_comment": "Per Document Drafting Handbook",
|
773 |
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\b",
|
774 |
+
"description": "Ensure proper handling of regulatory analysis terms (per Document Drafting Handbook)",
|
775 |
"is_error": true
|
776 |
},
|
777 |
{
|
778 |
"_comment": "Per Document Drafting Handbook",
|
779 |
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\s+(?:of|for|under)\\b",
|
780 |
+
"description": "Ensure proper handling of regulatory analysis terms (per Document Drafting Handbook)",
|
781 |
"is_error": true
|
782 |
}
|
783 |
],
|
|
|
785 |
{
|
786 |
"_comment": "Per Document Drafting Handbook",
|
787 |
"pattern": "\\b(?:except|unless|provided that)\\b",
|
788 |
+
"description": "Ensure proper formatting of regulatory exceptions (per Document Drafting Handbook)",
|
789 |
"is_error": true
|
790 |
},
|
791 |
{
|
792 |
"_comment": "Per Document Drafting Handbook",
|
793 |
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\b",
|
794 |
+
"description": "Ensure proper formatting of regulatory exceptions (per Document Drafting Handbook)",
|
795 |
"is_error": true
|
796 |
},
|
797 |
{
|
798 |
"_comment": "Per Document Drafting Handbook",
|
799 |
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\s+(?:for|under|in)\\b",
|
800 |
+
"description": "Ensure proper formatting of regulatory exceptions (per Document Drafting Handbook)",
|
801 |
"is_error": true
|
802 |
}
|
803 |
],
|
|
|
805 |
{
|
806 |
"_comment": "Per Document Drafting Handbook",
|
807 |
"pattern": "\\b(?:compliance|enforcement)\\s+(?:date|deadline|requirement|action)\\b",
|
808 |
+
"description": "Ensure proper specification of compliance and enforcement terms (per Document Drafting Handbook)",
|
809 |
"is_error": true
|
810 |
},
|
811 |
{
|
812 |
"_comment": "Per Document Drafting Handbook",
|
813 |
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:period|schedule|plan)\\b",
|
814 |
+
"description": "Ensure proper specification of implementation and transition terms (per Document Drafting Handbook)",
|
815 |
"is_error": true
|
816 |
},
|
817 |
{
|
818 |
"_comment": "Per Document Drafting Handbook",
|
819 |
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
820 |
+
"description": "Ensure proper specification of compliance dates (per Document Drafting Handbook)",
|
821 |
"is_error": true
|
822 |
},
|
823 |
{
|
824 |
"_comment": "Per Document Drafting Handbook",
|
825 |
"pattern": "\\b(?:compliance|enforcement)\\s+(?:with|under|of)\\b",
|
826 |
+
"description": "Ensure proper specification of compliance and enforcement terms (per Document Drafting Handbook)",
|
827 |
"is_error": true
|
828 |
},
|
829 |
{
|
830 |
"_comment": "Per Document Drafting Handbook",
|
831 |
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:of|for|under)\\b",
|
832 |
+
"description": "Ensure proper specification of implementation and transition terms (per Document Drafting Handbook)",
|
833 |
"is_error": true
|
834 |
},
|
835 |
{
|
836 |
"_comment": "Per Document Drafting Handbook",
|
837 |
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
838 |
+
"description": "Ensure proper specification of compliance dates (per Document Drafting Handbook)",
|
839 |
"is_error": true
|
840 |
}
|
841 |
]
|