Skip to content

Stop Word

Remove or mask common stop words from textual content.

Text AI & ML Transform json

actions:
- stop-word: {}
JSON
{
"actions": [
{
"stop-word": {}
}
]
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

Behaviour
Field Type Required Description
language string Named language profile for the built-in stop word lists.
custom string[] Custom stop words to merge with the language profile.
case-sensitive boolean (bool) Treat comparisons as case sensitive.
Default: false
preserve-phrases boolean (bool) Preserve multi-word phrases when present in the input.
Default: false
General
Field Type Required Description
description string Describe this step.
condition lua-expression (string) Only run this action if the condition is met.
Examples: 2 * count()
Input
Field Type Required Description
input-field field (string) Field containing the input text.
Examples: data_field
tokens-field field (string) Field containing an existing array of tokens to filter.
Examples: data_field
Output
Field Type Required Description
output-field field (string) Field to write the filtered output to (defaults to input when unset).
Examples: data_field
metrics-field field (string) Optional field to capture statistics about removals.
Examples: data_field