Spaces:
Sleeping
Sleeping
Update patterns.json
Browse files- patterns.json +370 -22
patterns.json
CHANGED
@@ -25,21 +25,47 @@
|
|
25 |
"pattern": "\\b(?:USC|U\\.S\\.C)\\b",
|
26 |
"description": "USC should be U.S.C.",
|
27 |
"is_error": true,
|
28 |
-
"replacement": "U.S.C."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
},
|
30 |
{
|
31 |
"_comment": "Per FAA Order 1320.46",
|
32 |
"pattern": "\\bCFR Part\\b",
|
33 |
"description": "CFR Part should be CFR part (lowercase)",
|
34 |
"is_error": true,
|
35 |
-
"replacement": "CFR part"
|
36 |
},
|
37 |
{
|
38 |
"_comment": "Per the GPO Style Manual",
|
39 |
"pattern": "\\bC\\.F\\.R\\.\\b",
|
40 |
-
"description": "C.F.R. should be CFR",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
"is_error": true,
|
42 |
-
"replacement": "
|
43 |
},
|
44 |
{
|
45 |
"pattern": "\\b(?:[Ww]e)\\b",
|
@@ -53,23 +79,23 @@
|
|
53 |
{
|
54 |
"_comment": "Per the GPO Style Manual",
|
55 |
"pattern": "\\bcancelled\\b",
|
56 |
-
"description": "'cancelled' should be 'canceled'",
|
57 |
"is_error": true,
|
58 |
-
"replacement": "canceled"
|
59 |
},
|
60 |
{
|
61 |
"_comment": "Per FAA Order 1320.46",
|
62 |
"pattern": "\\bshall\\b",
|
63 |
-
"description": "'shall' should be 'must'",
|
64 |
"is_error": true,
|
65 |
-
"replacement": "must"
|
66 |
},
|
67 |
{
|
68 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
69 |
"pattern": "\\bflight crew\\b",
|
70 |
-
"description": "'flight crew' should be 'flightcrew'",
|
71 |
"is_error": true,
|
72 |
-
"replacement": "flightcrew"
|
73 |
},
|
74 |
{
|
75 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
@@ -77,26 +103,26 @@
|
|
77 |
"description": "Replace gendered terms with their appropriate alternatives",
|
78 |
"is_error": true,
|
79 |
"replacements": {
|
80 |
-
"chairman": "chair",
|
81 |
-
"flagman": "flagperson",
|
82 |
-
"man": "person",
|
83 |
-
"manmade": "personmade",
|
84 |
-
"manpower": "labor force"
|
85 |
}
|
86 |
},
|
87 |
{
|
88 |
"_comment": "Per AIR-600 Quick Reference Guide. Changed per GENOT N 7930.114",
|
89 |
"pattern": "\\bnotice to air missions\\b",
|
90 |
-
"description": "'notice to air missions' should be 'notice to airmen'",
|
91 |
"is_error": true,
|
92 |
-
"replacement": "notice to airmen"
|
93 |
},
|
94 |
{
|
95 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
96 |
"pattern": "\\bcockpit\\b",
|
97 |
-
"description": "'cockpit' should be 'flight deck'",
|
98 |
"is_error": true,
|
99 |
-
|
100 |
},
|
101 |
{
|
102 |
"pattern": "\\b(in order to|for the purpose of)\\b",
|
@@ -232,6 +258,181 @@
|
|
232 |
"pattern": "\\b(as stated in|refer to|see)\\b.*?(\\bAppendix\\b|\\bTable\\b|\\bSection\\b|\\bFigure\\b)",
|
233 |
"description": "Ensure references are complete and properly formatted",
|
234 |
"is_error": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
}
|
236 |
],
|
237 |
"section_symbol": [
|
@@ -250,6 +451,11 @@
|
|
250 |
"description": "Do not flag properly formatted citations with section symbols (e.g., '5 U.S.C. § 533(a)(1)')",
|
251 |
"is_error": false
|
252 |
},
|
|
|
|
|
|
|
|
|
|
|
253 |
{
|
254 |
"pattern": "\\b14 CFR §\\s*\\d+\\.\\d+\\b",
|
255 |
"description": "14 CFR should not use section symbol",
|
@@ -313,6 +519,48 @@
|
|
313 |
"pattern": "(?<![\\w/-])(\\d{1,2}/\\d{1,2}/\\d{2,4}|\\d{1,2}-\\d{1,2}-\\d{2,4}|\\d{4}-\\d{1,2}-\\d{1,2})(?![\\w/-])",
|
314 |
"description": "Use 'Month Day, Year' format instead of numeric date formats (MM/DD/YYYY, MM-DD-YYYY, YYYY-MM-DD)",
|
315 |
"is_error": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
}
|
317 |
],
|
318 |
"placeholders": [
|
@@ -456,13 +704,13 @@
|
|
456 |
"pattern": "(?<!^)(?<![.!?])\\s+(Table|Figure)\\s+\\d+(?:-\\d+)?",
|
457 |
"description": "'Table' and 'Figure' references within sentences should be lowercase",
|
458 |
"is_error": true,
|
459 |
-
"
|
460 |
},
|
461 |
{
|
462 |
"pattern": "^(table|figure)\\s+\\d+(?:-\\d+)?",
|
463 |
"description": "'Table' and 'Figure' references at the start of a sentence should be capitalized",
|
464 |
"is_error": true,
|
465 |
-
"
|
466 |
}
|
467 |
],
|
468 |
"parentheses": [
|
@@ -472,5 +720,105 @@
|
|
472 |
"is_error": true,
|
473 |
"notes": "Matches cases where a closing parenthesis is missing after an opening or an opening parenthesis is missing before a closing."
|
474 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
]
|
476 |
-
}
|
|
|
25 |
"pattern": "\\b(?:USC|U\\.S\\.C)\\b",
|
26 |
"description": "USC should be U.S.C.",
|
27 |
"is_error": true,
|
28 |
+
"replacement": "U.S.C. (per the GPO Style Manual)"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"_comment": "Flag U.S.C without final period",
|
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. (per the GPO Style Manual)"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"_comment": "Handle Technical Standard Order acronyms",
|
39 |
+
"pattern": "\\bTechnical Standard Order \\(TSO\\)\\b",
|
40 |
+
"description": "Technical Standard Order (TSO) is a valid form",
|
41 |
+
"is_error": false
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"_comment": "Handle Technical Standard Order with hyphen",
|
45 |
+
"pattern": "\\bTechnical Standard Order \\(TSO-\\)\\b",
|
46 |
+
"description": "Technical Standard Order (TSO-) is a valid form",
|
47 |
+
"is_error": false
|
48 |
},
|
49 |
{
|
50 |
"_comment": "Per FAA Order 1320.46",
|
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",
|
|
|
79 |
{
|
80 |
"_comment": "Per the GPO Style Manual",
|
81 |
"pattern": "\\bcancelled\\b",
|
82 |
+
"description": "'cancelled' should be 'canceled' (per the GPO Style Manual)",
|
83 |
"is_error": true,
|
84 |
+
"replacement": "canceled (per the GPO Style Manual)"
|
85 |
},
|
86 |
{
|
87 |
"_comment": "Per FAA Order 1320.46",
|
88 |
"pattern": "\\bshall\\b",
|
89 |
+
"description": "'shall' should be 'must' (per FAA Order 1320.46)",
|
90 |
"is_error": true,
|
91 |
+
"replacement": "must (per FAA Order 1320.46)"
|
92 |
},
|
93 |
{
|
94 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
95 |
"pattern": "\\bflight crew\\b",
|
96 |
+
"description": "'flight crew' should be 'flightcrew' (per AIR-600 Quick Reference Guide)",
|
97 |
"is_error": true,
|
98 |
+
"replacement": "flightcrew (per AIR-600 Quick Reference Guide)"
|
99 |
},
|
100 |
{
|
101 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
|
|
103 |
"description": "Replace gendered terms with their appropriate alternatives",
|
104 |
"is_error": true,
|
105 |
"replacements": {
|
106 |
+
"chairman": "chair (per AIR-600 Quick Reference Guide)",
|
107 |
+
"flagman": "flagperson (per AIR-600 Quick Reference Guide)",
|
108 |
+
"man": "person (per AIR-600 Quick Reference Guide)",
|
109 |
+
"manmade": "personmade (per AIR-600 Quick Reference Guide)",
|
110 |
+
"manpower": "labor force (per AIR-600 Quick Reference Guide)"
|
111 |
}
|
112 |
},
|
113 |
{
|
114 |
"_comment": "Per AIR-600 Quick Reference Guide. Changed per GENOT N 7930.114",
|
115 |
"pattern": "\\bnotice to air missions\\b",
|
116 |
+
"description": "'notice to air missions' should be 'notice to airmen' (per GENOT N 7930.114)",
|
117 |
"is_error": true,
|
118 |
+
"replacement": "notice to airmen (per GENOT N 7930.114)"
|
119 |
},
|
120 |
{
|
121 |
"_comment": "Per AIR-600 Quick Reference Guide",
|
122 |
"pattern": "\\bcockpit\\b",
|
123 |
+
"description": "'cockpit' should be 'flight deck' (per AIR-600 Quick Reference Guide)",
|
124 |
"is_error": true,
|
125 |
+
"replacement": "flight deck (per AIR-600 Quick Reference Guide)"
|
126 |
},
|
127 |
{
|
128 |
"pattern": "\\b(in order to|for the purpose of)\\b",
|
|
|
258 |
"pattern": "\\b(as stated in|refer to|see)\\b.*?(\\bAppendix\\b|\\bTable\\b|\\bSection\\b|\\bFigure\\b)",
|
259 |
"description": "Ensure references are complete and properly formatted",
|
260 |
"is_error": true
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"pattern": "\\band/or\\b",
|
264 |
+
"description": "Avoid using 'and/or'; rewrite the sentence to be more specific about the conditions",
|
265 |
+
"is_error": true,
|
266 |
+
"replacement": "written sentence breaking up and/or (per AGC)"
|
267 |
+
},
|
268 |
+
{
|
269 |
+
"_comment": "Per Document Drafting Handbook",
|
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 Document Drafting Handbook)"
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"_comment": "Per Document Drafting Handbook",
|
277 |
+
"pattern": "\\b(?:authority|authorized|authorizes)\\b",
|
278 |
+
"description": "Specify the specific authority (e.g., 'under 49 U.S.C. § 44701')",
|
279 |
+
"is_error": true
|
280 |
+
},
|
281 |
+
{
|
282 |
+
"_comment": "Per Document Drafting Handbook",
|
283 |
+
"pattern": "\\b(?:means|includes|does not include|includes but is not limited to)\\b",
|
284 |
+
"description": "Ensure proper formatting of regulatory definitions",
|
285 |
+
"is_error": true
|
286 |
+
},
|
287 |
+
{
|
288 |
+
"_comment": "Per Document Drafting Handbook",
|
289 |
+
"pattern": "\\b(?:amends|adds|removes|revises|replaces)\\b",
|
290 |
+
"description": "Ensure proper use of regulatory action terms",
|
291 |
+
"is_error": true
|
292 |
+
},
|
293 |
+
{
|
294 |
+
"_comment": "Per Document Drafting Handbook",
|
295 |
+
"pattern": "\\b(?:applies|applicable|covers)\\s+(?:to|for|in)\\b",
|
296 |
+
"description": "Ensure clear specification of regulatory scope",
|
297 |
+
"is_error": true
|
298 |
+
},
|
299 |
+
{
|
300 |
+
"_comment": "Per Document Drafting Handbook",
|
301 |
+
"pattern": "\\b(?:comply|compliance|noncompliance)\\b",
|
302 |
+
"description": "Ensure proper handling of compliance terms",
|
303 |
+
"is_error": true
|
304 |
+
},
|
305 |
+
{
|
306 |
+
"_comment": "Per Document Drafting Handbook",
|
307 |
+
"pattern": "\\b(?:enforce|enforcement|violation)\\b",
|
308 |
+
"description": "Ensure proper handling of enforcement terms",
|
309 |
+
"is_error": true
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"_comment": "Per Document Drafting Handbook",
|
313 |
+
"pattern": "\\b(?:implement|implementation|carry out)\\b",
|
314 |
+
"description": "Ensure proper handling of implementation terms",
|
315 |
+
"is_error": true
|
316 |
+
},
|
317 |
+
{
|
318 |
+
"_comment": "Per Document Drafting Handbook",
|
319 |
+
"pattern": "\\b(?:delegated|authorized|assigned)\\s+(?:to|by)\\b",
|
320 |
+
"description": "Ensure proper specification of authority delegation",
|
321 |
+
"is_error": true
|
322 |
+
},
|
323 |
+
{
|
324 |
+
"_comment": "Per Document Drafting Handbook",
|
325 |
+
"pattern": "\\b(?:requirement|standard|specification)\\s+(?:for|of|in)\\b",
|
326 |
+
"description": "Ensure proper specification of requirements and standards",
|
327 |
+
"is_error": true
|
328 |
+
},
|
329 |
+
{
|
330 |
+
"_comment": "Per Document Drafting Handbook",
|
331 |
+
"pattern": "\\b(?:procedure|process|method)\\s+(?:for|of|in)\\b",
|
332 |
+
"description": "Ensure proper specification of procedures and processes",
|
333 |
+
"is_error": true
|
334 |
+
},
|
335 |
+
{
|
336 |
+
"_comment": "Per Document Drafting Handbook",
|
337 |
+
"pattern": "\\b(?:document|record|report)\\s+(?:required|maintained|submitted)\\b",
|
338 |
+
"description": "Ensure proper specification of documentation requirements",
|
339 |
+
"is_error": true
|
340 |
+
},
|
341 |
+
{
|
342 |
+
"_comment": "Per Document Drafting Handbook",
|
343 |
+
"pattern": "\\b(?:review|approval|authorization)\\s+(?:required|granted|denied)\\b",
|
344 |
+
"description": "Ensure proper specification of review and approval processes",
|
345 |
+
"is_error": true
|
346 |
+
},
|
347 |
+
{
|
348 |
+
"_comment": "Per Document Drafting Handbook",
|
349 |
+
"pattern": "\\b(?:violation|penalty|sanction)\\s+(?:for|of|in)\\b",
|
350 |
+
"description": "Ensure proper specification of violations and penalties",
|
351 |
+
"is_error": true
|
352 |
+
},
|
353 |
+
{
|
354 |
+
"_comment": "Per Document Drafting Handbook",
|
355 |
+
"pattern": "\\b(?:waiver|exemption|variance)\\s+(?:from|of|for)\\b",
|
356 |
+
"description": "Ensure proper specification of waivers and exemptions",
|
357 |
+
"is_error": true
|
358 |
+
},
|
359 |
+
{
|
360 |
+
"_comment": "Per Document Drafting Handbook",
|
361 |
+
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
362 |
+
"description": "Ensure proper specification of compliance dates",
|
363 |
+
"is_error": true
|
364 |
+
},
|
365 |
+
{
|
366 |
+
"_comment": "Per Document Drafting Handbook",
|
367 |
+
"pattern": "\\b(?:defined|definition|term)\\s+(?:in|under|for)\\b",
|
368 |
+
"description": "Ensure proper formatting of regulatory definitions",
|
369 |
+
"is_error": true
|
370 |
+
},
|
371 |
+
{
|
372 |
+
"_comment": "Per Document Drafting Handbook",
|
373 |
+
"pattern": "\\b(?:authority|power|jurisdiction)\\s+(?:to|for|over)\\b",
|
374 |
+
"description": "Ensure proper specification of regulatory authority",
|
375 |
+
"is_error": true
|
376 |
+
},
|
377 |
+
{
|
378 |
+
"_comment": "Per Document Drafting Handbook",
|
379 |
+
"pattern": "\\b(?:compliance|enforcement)\\s+(?:with|under|of)\\b",
|
380 |
+
"description": "Ensure proper specification of compliance and enforcement terms",
|
381 |
+
"is_error": true
|
382 |
+
},
|
383 |
+
{
|
384 |
+
"_comment": "Per Document Drafting Handbook",
|
385 |
+
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:of|for|under)\\b",
|
386 |
+
"description": "Ensure proper specification of implementation and transition terms",
|
387 |
+
"is_error": true
|
388 |
+
},
|
389 |
+
{
|
390 |
+
"_comment": "Per Document Drafting Handbook",
|
391 |
+
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\s+(?:of|for|under)\\b",
|
392 |
+
"description": "Ensure proper handling of regulatory analysis terms",
|
393 |
+
"is_error": true
|
394 |
+
},
|
395 |
+
{
|
396 |
+
"_comment": "Per Document Drafting Handbook",
|
397 |
+
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\s+(?:for|under|in)\\b",
|
398 |
+
"description": "Ensure proper formatting of regulatory exceptions",
|
399 |
+
"is_error": true
|
400 |
+
},
|
401 |
+
{
|
402 |
+
"_comment": "Per Document Drafting Handbook",
|
403 |
+
"pattern": "\\b(?:requirement|standard|specification)\\s+(?:for|of|in)\\b",
|
404 |
+
"description": "Ensure proper specification of requirements and standards",
|
405 |
+
"is_error": true
|
406 |
+
},
|
407 |
+
{
|
408 |
+
"_comment": "Per Document Drafting Handbook",
|
409 |
+
"pattern": "\\b(?:procedure|process|method)\\s+(?:for|of|in)\\b",
|
410 |
+
"description": "Ensure proper specification of procedures and processes",
|
411 |
+
"is_error": true
|
412 |
+
},
|
413 |
+
{
|
414 |
+
"_comment": "Per Document Drafting Handbook",
|
415 |
+
"pattern": "\\b(?:document|record|report)\\s+(?:required|maintained|submitted)\\b",
|
416 |
+
"description": "Ensure proper specification of documentation requirements",
|
417 |
+
"is_error": true
|
418 |
+
},
|
419 |
+
{
|
420 |
+
"_comment": "Per Document Drafting Handbook",
|
421 |
+
"pattern": "\\b(?:review|approval|authorization)\\s+(?:required|granted|denied)\\b",
|
422 |
+
"description": "Ensure proper specification of review and approval processes",
|
423 |
+
"is_error": true
|
424 |
+
},
|
425 |
+
{
|
426 |
+
"_comment": "Per Document Drafting Handbook",
|
427 |
+
"pattern": "\\b(?:violation|penalty|sanction)\\s+(?:for|of|in)\\b",
|
428 |
+
"description": "Ensure proper specification of violations and penalties",
|
429 |
+
"is_error": true
|
430 |
+
},
|
431 |
+
{
|
432 |
+
"_comment": "Per Document Drafting Handbook",
|
433 |
+
"pattern": "\\b(?:waiver|exemption|variance)\\s+(?:from|of|for)\\b",
|
434 |
+
"description": "Ensure proper specification of waivers and exemptions",
|
435 |
+
"is_error": true
|
436 |
}
|
437 |
],
|
438 |
"section_symbol": [
|
|
|
451 |
"description": "Do not flag properly formatted citations with section symbols (e.g., '5 U.S.C. § 533(a)(1)')",
|
452 |
"is_error": false
|
453 |
},
|
454 |
+
{
|
455 |
+
"pattern": "\\b(\\d+ U\\.S\\.C\\. §§? \\d+\\([a-zA-Z0-9]*\\)(?:\\([a-zA-Z0-9]*\\))?)\\.\\b",
|
456 |
+
"description": "Do not flag properly formatted citations with section symbols that end sentences (e.g., '5 U.S.C. § 533(a)(1).')",
|
457 |
+
"is_error": false
|
458 |
+
},
|
459 |
{
|
460 |
"pattern": "\\b14 CFR §\\s*\\d+\\.\\d+\\b",
|
461 |
"description": "14 CFR should not use section symbol",
|
|
|
519 |
"pattern": "(?<![\\w/-])(\\d{1,2}/\\d{1,2}/\\d{2,4}|\\d{1,2}-\\d{1,2}-\\d{2,4}|\\d{4}-\\d{1,2}-\\d{1,2})(?![\\w/-])",
|
520 |
"description": "Use 'Month Day, Year' format instead of numeric date formats (MM/DD/YYYY, MM-DD-YYYY, YYYY-MM-DD)",
|
521 |
"is_error": true
|
522 |
+
},
|
523 |
+
{
|
524 |
+
"_comment": "Common aviation/regulatory references that look like dates but aren't",
|
525 |
+
"pattern": "\\b(?:AD|SFAR|AC|Order|Notice|Policy|Memo)\\s*\\d{2,4}[-/]\\d{1,2}[-/]\\d{1,2}\\b",
|
526 |
+
"description": "Do not flag aviation/regulatory references as date format issues",
|
527 |
+
"is_error": false
|
528 |
+
},
|
529 |
+
{
|
530 |
+
"_comment": "Docket numbers including placeholders",
|
531 |
+
"pattern": "\\bDocket\\s+(?:No\\.?|Number)\\s*\\d{2,4}[-/][xX]{1,2}[-/][xX]{1,2}\\b",
|
532 |
+
"description": "Do not flag docket numbers with placeholders as date format issues",
|
533 |
+
"is_error": false
|
534 |
+
},
|
535 |
+
{
|
536 |
+
"_comment": "TSO references",
|
537 |
+
"pattern": "\\bTSO-[A-Z]?\\d{1,3}[a-zA-Z]?\\b",
|
538 |
+
"description": "Do not flag TSO references as date format issues",
|
539 |
+
"is_error": false
|
540 |
+
},
|
541 |
+
{
|
542 |
+
"_comment": "Part/section references",
|
543 |
+
"pattern": "\\b(?:Part|Section|§)\\s*\\d{1,3}[-/]\\d{1,3}\\b",
|
544 |
+
"description": "Do not flag part/section references as date format issues",
|
545 |
+
"is_error": false
|
546 |
+
},
|
547 |
+
{
|
548 |
+
"_comment": "Document numbers",
|
549 |
+
"pattern": "\\b(?:No\\.?|Number)\\s*\\d{2,4}[-/]\\d{1,2}[-/]\\d{1,2}\\b",
|
550 |
+
"description": "Do not flag document numbers as date format issues",
|
551 |
+
"is_error": false
|
552 |
+
},
|
553 |
+
{
|
554 |
+
"_comment": "Per Document Drafting Handbook",
|
555 |
+
"pattern": "\\b(?:effective|commencing|beginning)\\s+(?:on|as of|from)\\s+(?:the|this)\\s+(?:date|day)\\b",
|
556 |
+
"description": "Specify the exact effective date",
|
557 |
+
"is_error": true
|
558 |
+
},
|
559 |
+
{
|
560 |
+
"_comment": "Per Document Drafting Handbook",
|
561 |
+
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline)\\b",
|
562 |
+
"description": "Ensure proper formatting of compliance dates",
|
563 |
+
"is_error": true
|
564 |
}
|
565 |
],
|
566 |
"placeholders": [
|
|
|
704 |
"pattern": "(?<!^)(?<![.!?])\\s+(Table|Figure)\\s+\\d+(?:-\\d+)?",
|
705 |
"description": "'Table' and 'Figure' references within sentences should be lowercase",
|
706 |
"is_error": true,
|
707 |
+
"replacement": "table/figure (lowercase when used within a sentence)"
|
708 |
},
|
709 |
{
|
710 |
"pattern": "^(table|figure)\\s+\\d+(?:-\\d+)?",
|
711 |
"description": "'Table' and 'Figure' references at the start of a sentence should be capitalized",
|
712 |
"is_error": true,
|
713 |
+
"replacement": "Table/Figure (capitalized when starting a sentence)"
|
714 |
}
|
715 |
],
|
716 |
"parentheses": [
|
|
|
720 |
"is_error": true,
|
721 |
"notes": "Matches cases where a closing parenthesis is missing after an opening or an opening parenthesis is missing before a closing."
|
722 |
}
|
723 |
+
],
|
724 |
+
"citations": [
|
725 |
+
{
|
726 |
+
"_comment": "Per GPO Style Manual",
|
727 |
+
"pattern": "\\b(\\d+)\\s+(?:U\\.S\\.C\\.|CFR)\\s+(§|§§)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
728 |
+
"description": "Ensure proper formatting of legal citations",
|
729 |
+
"is_error": true,
|
730 |
+
"replacement": "$1 $2 §$3 (per GPO Style Manual)"
|
731 |
+
},
|
732 |
+
{
|
733 |
+
"_comment": "Per Document Drafting Handbook",
|
734 |
+
"pattern": "\\b(?:refer|reference|see)\\s+(?:section|paragraph|subsection|clause)\\s+(\\d+(?:\\.\\d+)*)\\b",
|
735 |
+
"description": "Ensure proper formatting of cross-references",
|
736 |
+
"is_error": true,
|
737 |
+
"replacement": "see §$1"
|
738 |
+
}
|
739 |
+
],
|
740 |
+
"regulatory_analysis": [
|
741 |
+
{
|
742 |
+
"_comment": "Per Document Drafting Handbook",
|
743 |
+
"pattern": "\\b(?:comment|commenter|commenting)\\b",
|
744 |
+
"description": "Ensure proper handling of public comment references",
|
745 |
+
"is_error": true
|
746 |
+
},
|
747 |
+
{
|
748 |
+
"_comment": "Per Document Drafting Handbook",
|
749 |
+
"pattern": "\\b(?:cost-benefit|regulatory impact|economic impact)\\b",
|
750 |
+
"description": "Ensure proper handling of regulatory analysis terms",
|
751 |
+
"is_error": true
|
752 |
+
},
|
753 |
+
{
|
754 |
+
"_comment": "Per Document Drafting Handbook",
|
755 |
+
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\b",
|
756 |
+
"description": "Ensure proper handling of regulatory analysis terms",
|
757 |
+
"is_error": true
|
758 |
+
},
|
759 |
+
{
|
760 |
+
"_comment": "Per Document Drafting Handbook",
|
761 |
+
"pattern": "\\b(?:regulatory|economic|environmental)\\s+(?:impact|analysis|assessment)\\s+(?:of|for|under)\\b",
|
762 |
+
"description": "Ensure proper handling of regulatory analysis terms",
|
763 |
+
"is_error": true
|
764 |
+
}
|
765 |
+
],
|
766 |
+
"exceptions": [
|
767 |
+
{
|
768 |
+
"_comment": "Per Document Drafting Handbook",
|
769 |
+
"pattern": "\\b(?:except|unless|provided that)\\b",
|
770 |
+
"description": "Ensure proper formatting of regulatory exceptions",
|
771 |
+
"is_error": true
|
772 |
+
},
|
773 |
+
{
|
774 |
+
"_comment": "Per Document Drafting Handbook",
|
775 |
+
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\b",
|
776 |
+
"description": "Ensure proper formatting of regulatory exceptions",
|
777 |
+
"is_error": true
|
778 |
+
},
|
779 |
+
{
|
780 |
+
"_comment": "Per Document Drafting Handbook",
|
781 |
+
"pattern": "\\b(?:except|unless|provided that|notwithstanding)\\s+(?:for|under|in)\\b",
|
782 |
+
"description": "Ensure proper formatting of regulatory exceptions",
|
783 |
+
"is_error": true
|
784 |
+
}
|
785 |
+
],
|
786 |
+
"compliance": [
|
787 |
+
{
|
788 |
+
"_comment": "Per Document Drafting Handbook",
|
789 |
+
"pattern": "\\b(?:compliance|enforcement)\\s+(?:date|deadline|requirement|action)\\b",
|
790 |
+
"description": "Ensure proper specification of compliance and enforcement terms",
|
791 |
+
"is_error": true
|
792 |
+
},
|
793 |
+
{
|
794 |
+
"_comment": "Per Document Drafting Handbook",
|
795 |
+
"pattern": "\\b(?:implementation|transition|phase-in)\\s+(?:period|schedule|plan)\\b",
|
796 |
+
"description": "Ensure proper specification of implementation and transition terms",
|
797 |
+
"is_error": true
|
798 |
+
},
|
799 |
+
{
|
800 |
+
"_comment": "Per Document Drafting Handbook",
|
801 |
+
"pattern": "\\b(?:compliance|implementation|enforcement)\\s+(?:date|deadline|requirement)\\b",
|
802 |
+
"description": "Ensure proper specification of compliance dates",
|
803 |
+
"is_error": true
|
804 |
+
},
|
805 |
+
{
|
806 |
+
"_comment": "Per Document Drafting Handbook",
|
807 |
+
"pattern": "\\b(?:compliance|enforcement)\\s+(?:with|under|of)\\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+(?:of|for|under)\\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 |
+
}
|