syntactic.make_words

syntactic.make_words(obj: str | list[str]) list[str]

Convert variable names to human-readable word strings.

Strings that already contain spaces are returned unmodified.

Parameters:

obj (str or list of str) – Variable name(s) to convert.

Returns:

Human-readable word string(s).

Return type:

list of str

Examples

>>> make_words(["nGene", "log10GenesPerUMI"])
['n gene', 'log10 genes per UMI']