Hoctar77 commited on
Commit
92e51bf
·
verified ·
1 Parent(s): a77b143

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -0
README.md CHANGED
@@ -10,3 +10,109 @@ pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)