Skip to content

Stop Word

Stop Word (stop-word)

Remove or mask common stop words from textual content.

Text AI & ML Transform json

Minimal example

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

Contents

Behaviour

Behaviour
FieldTypeRequiredDescription
languagestringNamed language profile for the built-in stop word lists.
customstring[]Custom stop words to merge with the language profile.
case-sensitiveboolean (bool)Treat comparisons as case sensitive.
Default: false
preserve-phrasesboolean (bool)Preserve multi-word phrases when present in the input.
Default: false

General

General
FieldTypeRequiredDescription
descriptionstringDescribe this step.
conditionlua-expression (string)Only run this action if the condition is met.
Examples: 2 * count()

Input

Input
FieldTypeRequiredDescription
input-fieldfield (string)Field containing the input text.
Examples: data_field
tokens-fieldfield (string)Field containing an existing array of tokens to filter.
Examples: data_field

Output

Output
FieldTypeRequiredDescription
output-fieldfield (string)Field to write the filtered output to (defaults to input when unset).
Examples: data_field
metrics-fieldfield (string)Optional field to capture statistics about removals.
Examples: data_field