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'

Source:
Parameters:
Name Type Description
text string
Returns:
Type:
string

text The transformed text