Hoctar77 commited on
Commit
9b3e770
·
verified ·
1 Parent(s): 5de9ac1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +202 -107
README.md CHANGED
@@ -9,110 +9,205 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
-
14
- # Document Checker Tool
15
-
16
- ## Overview
17
- This tool helps review and validate Federal Aviation Administration (FAA) documents for compliance with formatting rules and style guidelines. It's designed to catch common errors and inconsistencies that might occur in regulatory documents, making the review process faster and more accurate.
18
-
19
- ## What Does It Do?
20
- The tool reads Microsoft Word (docx) documents and performs a comprehensive set of checks to ensure they follow FAA documentation standards. Think of it as a specialized proofreader that knows all the specific rules for FAA documents.
21
-
22
- ## Document Types Supported
23
- - Advisory Circulars (both Short and Long templates)
24
- - Airworthiness Criteria
25
- - Deviation Memos
26
- - Exemptions
27
- - Federal Register Notices
28
- - Handbooks/Manuals
29
- - Orders
30
- - Policy Statements
31
- - Rules
32
- - Special Conditions
33
- - Technical Standard Orders
34
- - Other document types
35
-
36
- ## What Does It Check For?
37
-
38
- ### 1. Required Headings
39
- - Verifies that all required section headings are present
40
- - Different document types have different required headings
41
- - For example, Advisory Circulars (AC) must have sections like "PURPOSE.", "APPLICABILITY.", etc.
42
-
43
- ### 2. Acronym Usage
44
- - Checks if all acronyms are properly defined at their first use
45
- - Example: "Federal Aviation Administration (FAA)" must appear before using just "FAA"
46
- - Identifies any undefined acronyms in the document
47
-
48
- ### 3. Legal Terminology
49
- - Ensures proper formatting of legal references
50
- - Checks for correct usage of terms like:
51
- - "U.S.C." instead of "USC"
52
- - "Title 14" instead of "title 14" when used in body text. Use "Title 14" when begins a sentence.
53
- - "CFR part" instead of "CFR Part" when used in body text.
54
- - Verifies proper use of "the FAA" instead of "We" or "we"
55
-
56
- ### 4. Table and Figure Formatting
57
- - Validates table captions (e.g., for ACs, "Table 1-2" or "Table C-1")
58
- - Checks figure captions (e.g., for ACs, "Figure 1-2" or "Figure C-1")
59
- - Ensures proper references to tables and figures within the text
60
-
61
- ### 5. Document Title Styling
62
- - Checks if document titles are properly formatted based on document type
63
- - Some documents require italics, others require quotation marks
64
- - Ensures consistent styling throughout the document
65
-
66
- ### 6. Grammar and Formatting
67
- - Catches double periods at the end of sentences
68
- - Checks for proper spacing:
69
- - Between document type and number (e.g., "AC 20-114")
70
- - Around section symbols (e.g., "§ 25.301")
71
- - Around part numbers (e.g., "Part 25")
72
- - In paragraph indications (e.g., "(a)", "(1)")
73
- - Identifies double spaces between words
74
-
75
- ### 7. Consistency Checks
76
- - Verifies that abbreviations are used consistently after being defined
77
- - Ensures dates are in the correct format (e.g., "January 1, 2024" instead of "1/1/24" or "1 January 2024")
78
- - Identifies placeholder text that needs to be replaced (e.g., "TBD", "To be determined")
79
-
80
- ## How to Use the Tool
81
-
82
- 1. Run the program
83
- 2. When prompted, either:
84
- - Press Enter to use the default document path
85
- - Type in the full path to your Word document
86
-
87
- 3. Select your document type from the numbered list
88
-
89
- 4. If you're checking an Advisory Circular, select the template type:
90
- - Short AC template
91
- - Long AC template
92
-
93
- 5. The tool will process your document and create a file called "check_complete.md" with the results
94
-
95
- ## Understanding the Results
96
-
97
- The results file ("check_complete.md") will show:
98
- - Passed checks
99
- - Items that need attention
100
- - Specific examples of what needs to be fixed
101
- - Suggestions for corrections
102
-
103
- ## Important Notes
104
-
105
- - The tool doesn't make any changes to your original document
106
- - It's designed to assist reviewers, not replace human review
107
- - All findings should be verified by a human reviewer
108
- - The tool works best with properly formatted Microsoft Word documents
109
- - Some document types may have "TBD - Need to research" for required headings as these requirements are still being documented
110
-
111
- ## Technical Requirements
112
-
113
- - Microsoft Word must be installed on your computer
114
- - The document must be in .docx format
115
- - Python must be installed with the required libraries:
116
- - python-docx
117
- - logging
118
- - re (regular expressions)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ # Document Checker Tool
13
+ **Ensuring FAA Document Compliance and Consistency**
14
+
15
+ ---
16
+
17
+ ## 1. Introduction
18
+
19
+ ### Purpose
20
+ The **Document Checker Tool** aims to:
21
+ - Improve consistency and compliance with FAA and regulatory guidelines.
22
+ - Automate tedious manual checks, providing faster and more accurate results.
23
+ - Enhance clarity and professionalism in FAA documentation.
24
+
25
+ This tool provides **suggestions**, but the final editorial decisions rest with the document author.
26
+
27
+ ### Scope
28
+ The tool supports all FAA document types AIR-646 supports and includes 15 categories of checks.
29
+
30
+ The tool adheres to style and guidelines derived from:
31
+ - GPO Style Manual
32
+ - FAA Orders
33
+ - Document Drafting Handbook
34
+ - AIR-600 Quick Reference Guide
35
+ - Internal memos, templates, and more
36
+
37
+ ---
38
+
39
+ ## 2. Checker Categories Overview
40
+
41
+ ### 15 Key Checker Categories
42
+ 1. **Heading Title Checks**
43
+ 2. **Heading Period Format Check**
44
+ 3. **Acronym Check**
45
+ 4. **Acronym Usage Check**
46
+ 5. **Terminology Checks**
47
+ 6. **Section Symbol (§) Checks**
48
+ 7. **Table Caption Check**
49
+ 8. **Figure Caption Check**
50
+ 9. **Table/Figure Reference Check**
51
+ 10. **Referenced Document Title Format Check**
52
+ 11. **Double Period Check**
53
+ 12. **Spacing Check**
54
+ 13. **Date Format Check**
55
+ 14. **Placeholder Content Check**
56
+ 15. **Parenthesis Balance Check**
57
+
58
+ ---
59
+
60
+ ## 3. Details of Each Checker
61
+
62
+ ### Heading Checks
63
+
64
+ #### 1. Required Heading Title Check
65
+ Verifies required headings are present and properly formatted based on document type.
66
+
67
+ **Examples:**
68
+
69
+ - **Advisory Circulars:**
70
+ - Purpose
71
+ - Applicability
72
+ - Cancellation
73
+ - Related Material
74
+ - Definition of Key Terms
75
+
76
+ - **Federal Register Notice:**
77
+ - Purpose of This Notice
78
+ - Audience
79
+ - Where Can I Find This Notice
80
+
81
+ - **Order:**
82
+ - Purpose of This Order
83
+ - Audience
84
+ - Where to Find This Order
85
+
86
+ #### 2. Heading Period Format Check
87
+ Ensures headings have or do not have periods based on document type.
88
+
89
+ **Examples:**
90
+ - **Required Period:** Advisory Circular, Order, Technical Standard Order
91
+ - **No Period:** All other document types
92
+
93
+ ---
94
+
95
+ ### Acronym and Abbreviation Checks
96
+
97
+ #### 3. Acronym Check
98
+ Ensures acronyms are defined at first use.
99
+ - **Example:** Federal Aviation Administration (FAA)
100
+
101
+ #### 4. Acronym Usage Check
102
+ Identifies acronyms defined but not used.
103
+
104
+ ---
105
+
106
+ ### Terminology Checks
107
+
108
+ #### 5. Terminology Usage Check
109
+ Flags outdated or vague terms and enforces FAA terminology standards.
110
+
111
+ **Examples:**
112
+ - Replace "shall" with "must" per GPO Style Manual.
113
+ - Replace "flight crew" with "flightcrew" per AIR-600 Quick Reference Guide.
114
+
115
+ ---
116
+
117
+ ### Section Symbol (§) Checks
118
+
119
+ #### 6. Section Symbol Usage Check
120
+ Ensures proper formatting for section symbols.
121
+
122
+ **Examples:**
123
+ - Replace "14 CFR § 21.21" with "14 CFR 21.21".
124
+ - Replace "§ 25.25 and 25.26" with "§§ 25.25 and 25.26".
125
+
126
+ ---
127
+
128
+ ### Table and Figure Checks
129
+
130
+ #### 7 & 8. Table/Figure Caption Checks
131
+ Verifies captions follow correct numbering conventions based on document type.
132
+
133
+ **Examples:**
134
+ - Table X-Y and Figure X-Y for Advisory Circulars and Orders.
135
+ - Table X and Figure X for all other document types.
136
+
137
+ #### 9. Table/Figure Reference Check
138
+ Ensures references are lowercase mid-sentence and capitalized at the start of a sentence.
139
+
140
+ ---
141
+
142
+ ### Document Title Checks
143
+
144
+ #### 10. Referenced Document Title Format Check
145
+ Verifies correct formatting of referenced document titles.
146
+
147
+ - **Italicize:** Advisory Circulars
148
+ - **Quotation Marks:** Airworthiness Criteria, Deviation Memo, Exemption, Federal Register Notice, Order, Rule, Special Condition, Technical Standard Order
149
+ - **No Formatting:** Policy Statement and all others
150
+
151
+ ---
152
+
153
+ ### Punctuation and Spacing Checks
154
+
155
+ #### 11. Double Period Check
156
+ Flags unintended multiple periods.
157
+
158
+ **Example:**
159
+ - Corrects: "This sentence ends with two periods..".
160
+
161
+ #### 12. Spacing Check
162
+ Ensures proper spacing around references.
163
+
164
+ **Examples:**
165
+ - Replace "AC25.1" with "AC 25.1".
166
+ - Remove double spaces between words or after periods.
167
+
168
+ ---
169
+
170
+ ### Date Format and Placeholder Checks
171
+
172
+ #### 13. Date Format Consistency Check
173
+ Ensures dates follow the "Month Day, Year" format in the document body.
174
+
175
+ **Examples:**
176
+ - Replace "1/15/24" with "January 15, 2024".
177
+
178
+ #### 14. Placeholder Content Check
179
+ Flags placeholders like "TBD" or "To be added."
180
+
181
+ ---
182
+
183
+ ### Parenthesis Balance Check
184
+
185
+ #### 15. Parenthesis Balance Check
186
+ Verifies that all parentheses are properly opened and closed.
187
+
188
+ **Examples:**
189
+ - Add a missing closing parenthesis to "The system (as defined in AC 25-11B performs...".
190
+
191
+ ---
192
+
193
+ ## 4. Practical Applications
194
+
195
+ 1. **Efficient Document Review:** Automated checks save time and reduce errors.
196
+ 2. **Consistency Across Documents:** Ensures adherence to FAA standards.
197
+ 3. **Enhanced Collaboration:** Simplifies document updates for teams.
198
+
199
+ ---
200
+
201
+ ## 5. Conclusion and Future Updates
202
+
203
+ ### Key Takeaways
204
+ - Automated checkers enhance accuracy and compliance.
205
+ - Tailored for FAA documentation needs.
206
+ - Saves time while improving document quality.
207
+
208
+ ### What's Next?
209
+ - Continue refining the tool to improve accuracy and functionality.
210
+ - Explore adding new checks based on user feedback and evolving guidelines.
211
+ - Investigate ignoring specific sections like the Table of Contents for better results.
212
+
213
+ **Note:** This tool is a work in progress. Expect more features and updates in the future to meet evolving document requirements.