Update app.py
Browse files
app.py
CHANGED
@@ -81,14 +81,25 @@ def check_metadata(full_text: str) -> Dict[str, Any]:
|
|
81 |
|
82 |
def check_disclosures(full_text: str) -> Dict[str, bool]:
|
83 |
"""Check for disclosure statements."""
|
|
|
84 |
search_terms = [
|
85 |
-
"author contributions statement",
|
86 |
"conflict of interest statement",
|
87 |
"ethics statement",
|
88 |
"funding statement",
|
89 |
"data access statement"
|
90 |
]
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
def check_figures_and_tables(full_text: str) -> Dict[str, bool]:
|
94 |
"""Check for figures and tables."""
|
|
|
81 |
|
82 |
def check_disclosures(full_text: str) -> Dict[str, bool]:
|
83 |
"""Check for disclosure statements."""
|
84 |
+
# Regular search terms
|
85 |
search_terms = [
|
|
|
86 |
"conflict of interest statement",
|
87 |
"ethics statement",
|
88 |
"funding statement",
|
89 |
"data access statement"
|
90 |
]
|
91 |
+
|
92 |
+
# Get results for regular terms
|
93 |
+
results = check_text_presence(full_text, search_terms)
|
94 |
+
|
95 |
+
# Special check for author contribution(s) statement - either singular or plural form
|
96 |
+
has_author_contribution = ("author contribution statement" in full_text.lower() or
|
97 |
+
"author contributions statement" in full_text.lower())
|
98 |
+
|
99 |
+
# Add the author contribution result to our results dictionary
|
100 |
+
results["author contribution statement"] = has_author_contribution
|
101 |
+
|
102 |
+
return results
|
103 |
|
104 |
def check_figures_and_tables(full_text: str) -> Dict[str, bool]:
|
105 |
"""Check for figures and tables."""
|