geeViz.eeCatalogHelpers.text

Text normalization helpers.

Functions

clean_text(value)

Normalize BOM/whitespace and return an empty string for nulls.

normalize_for_matching(value[, null_tokens])

Normalize text and collapse common null-like tokens to empty strings.

geeViz.eeCatalogHelpers.text.clean_text(value: str | None) → str[source]

Normalize BOM/whitespace and return an empty string for nulls.

geeViz.eeCatalogHelpers.text.normalize_for_matching(value: str | None, null_tokens: set[str] | None = None) → str[source]

Normalize text and collapse common null-like tokens to empty strings.