MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _normalize_author_key

Function _normalize_author_key

agents/profile-report-agent/main.py:81–83  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

79
80def _normalize_author_key(value: Any) -> str:
81 lowered = str(value or "").strip().casefold()
82 return re.sub(r"[^0-9a-z\u4e00-\u9fff]+", "", lowered)
83
84
85def _fetch_openalex_impact_signal(paper: Dict[str, Any]) -> Dict[str, Any]:
86 doi = _extract_doi(paper.get("doi") or paper.get("doi_url") or paper.get("url"))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected