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

Function _normalize_person_name

agents/coldstart-agent/main.py:667–671  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

665) -> str:
666 """Normalize a Scholar profile URL and request a larger publication page size."""
667 candidate = _collapse_whitespace(scholar_url)
668 if not candidate:
669 raise ValueError("empty scholar url")
670 if "://" not in candidate:
671 candidate = f"https://{candidate.lstrip('/')}"
672
673 parsed = urlsplit(candidate)
674 if not parsed.netloc:

Callers 1

_parse_author_namesFunction · 0.85

Calls 1

_collapse_whitespaceFunction · 0.85

Tested by

no test coverage detected