Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ HEADING_WORDS = {
|
|
54 |
|
55 |
# Predefined Acronyms
|
56 |
PREDEFINED_ACRONYMS = {
|
57 |
-
'CFR', 'U.S.', 'USA', 'US', 'U.S.C', 'e.g.', 'i.e.', 'FAQ', 'No.', 'ZIP', 'PDF', 'SSN',
|
58 |
-
'DC', 'MD', 'MA', 'WA', 'TX', 'MO', 'FAA IR-M', 'DOT'
|
59 |
}
|
60 |
|
61 |
# Configuration Constants
|
@@ -85,7 +85,7 @@ DOCUMENT_FORMATTING_RULES = {
|
|
85 |
"italics": True,
|
86 |
"quotes": False,
|
87 |
"description": "For Advisory Circulars, referenced document titles should be italicized but not quoted.",
|
88 |
-
"example": "See AC
|
89 |
},
|
90 |
"quotes_only": {
|
91 |
"types": [
|
@@ -96,14 +96,14 @@ DOCUMENT_FORMATTING_RULES = {
|
|
96 |
"italics": False,
|
97 |
"quotes": True,
|
98 |
"description": "For this document type, referenced document titles should be in quotes without italics.",
|
99 |
-
"example": 'See AC
|
100 |
},
|
101 |
"no_formatting": {
|
102 |
"types": ["Policy Statement", "Other"],
|
103 |
"italics": False,
|
104 |
"quotes": False,
|
105 |
"description": "For this document type, referenced document titles should not use italics or quotes.",
|
106 |
-
"example": "See AC
|
107 |
}
|
108 |
}
|
109 |
|
@@ -1820,8 +1820,8 @@ class DocumentCheckResultsFormatter:
|
|
1820 |
'description': 'Ensures that all acronyms defined in the document are actually used later. If an acronym is defined but never referenced, the definition should be removed to avoid confusion or unnecessary clutter.',
|
1821 |
'solution': 'Identify acronyms that are defined but not used later in the document and remove their definitions.',
|
1822 |
'example_fix': {
|
1823 |
-
'before': 'Operators must comply with
|
1824 |
-
'after': '
|
1825 |
}
|
1826 |
},
|
1827 |
'terminology_check': {
|
@@ -2194,7 +2194,7 @@ class DocumentCheckResultsFormatter:
|
|
2194 |
"No special formatting required"
|
2195 |
),
|
2196 |
'example_fix': {
|
2197 |
-
'before': 'See AC
|
2198 |
'after': format_group['example']
|
2199 |
}
|
2200 |
}
|
@@ -2206,8 +2206,8 @@ class DocumentCheckResultsFormatter:
|
|
2206 |
'description': 'Ensures that all acronyms defined in the document are actually used later. If an acronym is defined but never referenced, the definition should be removed to avoid confusion or unnecessary clutter.',
|
2207 |
'solution': 'Identify acronyms that are defined but not used later in the document and remove their definitions.',
|
2208 |
'example_fix': {
|
2209 |
-
'before': 'Operators must comply with
|
2210 |
-
'after': '
|
2211 |
}
|
2212 |
}
|
2213 |
|
|
|
54 |
|
55 |
# Predefined Acronyms
|
56 |
PREDEFINED_ACRONYMS = {
|
57 |
+
'CFR', 'U.S.', 'USA', 'US', 'U.S.C.', 'e.g.', 'i.e.', 'FAQ', 'No.', 'ZIP', 'PDF', 'SSN',
|
58 |
+
'DC', 'MD', 'MA', 'WA', 'TX', 'MO', 'FAA IR-M', 'DOT', 'AGC', 'AIR'
|
59 |
}
|
60 |
|
61 |
# Configuration Constants
|
|
|
85 |
"italics": True,
|
86 |
"quotes": False,
|
87 |
"description": "For Advisory Circulars, referenced document titles should be italicized but not quoted.",
|
88 |
+
"example": "See AC 25.1309-1B, <i>System Design and Analysis</i>, for information on X."
|
89 |
},
|
90 |
"quotes_only": {
|
91 |
"types": [
|
|
|
96 |
"italics": False,
|
97 |
"quotes": True,
|
98 |
"description": "For this document type, referenced document titles should be in quotes without italics.",
|
99 |
+
"example": 'See AC 25.1309-1B, "System Design and Analysis," for information on X.'
|
100 |
},
|
101 |
"no_formatting": {
|
102 |
"types": ["Policy Statement", "Other"],
|
103 |
"italics": False,
|
104 |
"quotes": False,
|
105 |
"description": "For this document type, referenced document titles should not use italics or quotes.",
|
106 |
+
"example": "See AC 25.1309-1B, System Design and Analysis, for information on X."
|
107 |
}
|
108 |
}
|
109 |
|
|
|
1820 |
'description': 'Ensures that all acronyms defined in the document are actually used later. If an acronym is defined but never referenced, the definition should be removed to avoid confusion or unnecessary clutter.',
|
1821 |
'solution': 'Identify acronyms that are defined but not used later in the document and remove their definitions.',
|
1822 |
'example_fix': {
|
1823 |
+
'before': 'Operators must comply with airworthiness directives (AD) to ensure aircraft safety and regulatory compliance.',
|
1824 |
+
'after': 'Operators must comply with airworthiness directives to ensure aircraft safety and regulatory compliance.'
|
1825 |
}
|
1826 |
},
|
1827 |
'terminology_check': {
|
|
|
2194 |
"No special formatting required"
|
2195 |
),
|
2196 |
'example_fix': {
|
2197 |
+
'before': 'See AC 25.1309-1B, System Design and Analysis, for information on X.',
|
2198 |
'after': format_group['example']
|
2199 |
}
|
2200 |
}
|
|
|
2206 |
'description': 'Ensures that all acronyms defined in the document are actually used later. If an acronym is defined but never referenced, the definition should be removed to avoid confusion or unnecessary clutter.',
|
2207 |
'solution': 'Identify acronyms that are defined but not used later in the document and remove their definitions.',
|
2208 |
'example_fix': {
|
2209 |
+
'before': 'Operators must comply with airworthiness directives (AD) to ensure aircraft safety and regulatory compliance.',
|
2210 |
+
'after': 'Operators must comply with airworthiness directives to ensure aircraft safety and regulatory compliance.'
|
2211 |
}
|
2212 |
}
|
2213 |
|