research-ai-checker
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic links in README
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (0.2%) to scientific vocabulary
Last synced: 6 months ago
·
JSON representation
·
Repository
Basic Info
- Host: GitHub
- Owner: Redwan90
- Language: Python
- Default Branch: main
- Size: 67.4 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created 12 months ago
· Last pushed 11 months ago
Metadata Files
Citation
Owner
- Name: Ridwan
- Login: Redwan90
- Kind: user
- Location: Iraq
- Repositories: 1
- Profile: https://github.com/Redwan90
Assistant Lecturer in private sector IT assistant in Korek telecommunication company Master Scs. in Computer Engineering and Bachelor in computer science
Citation (citation_formatter.py)
# citation_formatter.py
import re
def correct_references(refs):
"""
Take a list of reference strings and return a new list
where each reference is formatted in APA style with:
- the year bolded
- the DOI turned into a clickable link
"""
return [format_reference(r) for r in refs]
def format_reference(ref):
# 1) Bold the year: find "(2023)" etc.
# Replace with **(2023)** so Streamlit shows it in bold.
ref = re.sub(
r'\(\s*(\d{4})\s*\)',
r'**(\1)**',
ref
)
# 2) Turn any DOI into a markdown hyperlink
# First, if it already contains "https://doi.org/…"
doi_url_match = re.search(r'https?://doi\.org/[^\s,;]+', ref, flags=re.IGNORECASE)
if doi_url_match:
url = doi_url_match.group(0)
# For display, we’ll show just the suffix after doi.org/
suffix = url.split('doi.org/')[-1]
md_link = f"[doi:{suffix}]({url})"
ref = ref.replace(url, md_link)
else:
# Otherwise, look for a bare DOI like "10.1234/abcd.efgh"
doi_plain_match = re.search(r'(10\.\d{4,9}/[^\s,;]+)', ref)
if doi_plain_match:
doi = doi_plain_match.group(1)
url = f"https://doi.org/{doi}"
md_link = f"[doi:{doi}]({url})"
ref = ref.replace(doi, md_link)
return ref
GitHub Events
Total
- Push event: 46
Last Year
- Push event: 46