CategorialTransform

CategorialTransform

new CategorialTransform()

CategorialTransfrom defines a transformation on categorial and textual data, and is implemented as a collection of rules.

Source:

Methods

(static) transform(text) → {string}

Apply the first applicable transformation rule. When no matching rule is found, return 'Other'

Parameters:
Name Type Description
text string
Source:
Returns:

text The transformed text

Type
string