citeformer.render.styles

Style-name resolution.

Since the home-grown-formatter rewrite (see docs/decisions/004-citeproc-rewrite.md), “style loading” is just a formatter lookup — no more CSL XML parsing. This module stays as the integration point if we later add a user-supplied-CSL code path.

Module Contents

Functions

bundled_style_names

Return the canonical list of bundled style identifiers.

style_citation_format

Classify a bundled style as "author-date" / "author" / "numeric".

API

citeformer.render.styles.bundled_style_names() list[str]

Return the canonical list of bundled style identifiers.

Aliases ("apa""apa-7", etc.) are omitted. Any name in this list — or an alias — works with render_references and get_formatter.

citeformer.render.styles.style_citation_format(name: str) str

Classify a bundled style as "author-date" / "author" / "numeric".

Useful for downstream tooling that wants to know what kind of inline marker a style produces without actually rendering.

Args: name: Bundled style identifier (canonical or alias).

Returns: The citation_format class attribute of the resolved formatter.