pipeworks_name_generation.renderer
Minimal, deterministic name rendering helpers.
This module provides optional post-processing for generated names. It focuses on simple casing transforms so consumers can request a consistent presentation without mutating the underlying source data. Advanced linguistic styling (for example language-specific title casing rules) should live in higher-level applications.
Attributes
Functions
|
Normalize and validate a render style value. |
|
Render a single name using the requested style. |
|
Render a list of names with the requested style. |
Module Contents
- pipeworks_name_generation.renderer.normalize_render_style(raw_style)[source]
Normalize and validate a render style value.
- Parameters:
raw_style (str | None) – User-supplied style string.
Noneor blanks meanraw.- Returns:
Canonical render style key.
- Raises:
ValueError – If the style is not recognized.
- Return type:
- pipeworks_name_generation.renderer.render_name(name, style=None)[source]
Render a single name using the requested style.