Skip to main content

Module utils

Module utils 

Source

Enums§

KeyStyle
Citation key generation style.

Functions§

capitalise_first
Capitalise the first character of a string, leaving the rest unchanged.
generate_citation_key
Generate an author-year citation key, e.g. Smith2024 or SmithJones2024.
generate_citation_key_by_style
Generate a citation key according to the given style.
normalise_doi
Normalise a raw DOI string: strip URL prefixes if present.
resolve_key_conflict
Append a conflict suffix (a, b, …) to base_key until it is unique among existing_keys.