Skip to main content
Version: v0.0.4

Variable: defaultStatusMapper

const defaultStatusMapper: StatusMapper

The default raw-token → ConceptActivity mapping, case-insensitive.

Recognized (grounded in the format docs): ""/N/ACTIVE → active; DEPRECATED → deprecated; DISCOURAGED; TRIAL; O/OBSOLETE → obsolete; Y/E/SUPPRESSED → suppressed. Anything else → unknown (surfaced with its raw token, never coerced to active).

Param

raw

The steward's raw status token.

Returns

The normalized activity.

Example

import { defaultStatusMapper } from "@cosyte/terminology";

defaultStatusMapper("DEPRECATED"); // => "deprecated"
defaultStatusMapper("N"); // => "active"