customise_text

customise_text(x, custom=None, keep=None)

Style text: replace underscores with spaces and convert to sentence case.

Parameters

Name Type Description Default
x str or list[str] Text to style. required
custom dict Specific overrides mapping original -> replacement text. None
keep list[str] Values to keep unchanged. None

Returns

Name Type Description
str or list[str] Styled text.