Skip to content

Text.RemoveStopwords

Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Removes common Portuguese stopwords from a text to enhance text analysis.

Syntax

Text.RemoveStopwords(
    textToModify as nullable text,
    optional undesirableWords as list
) as text

Parameters

  • textToModify: The text string from which to remove stopwords.
  • undesirableWords (optional): A list of additional words to remove from the text. Default is an empty list.

Return Value

Returns the input text with all Portuguese stopwords and any additional specified words removed.

Examples

Example 1: Removes all stopwords.

Text.RemoveStopwords("This is an example of text to remove stopwords.")

Result

"example text remove stopwords."

Example 2: Also removes any undesireble words if specified.

Text.RemoveStopwords(
    "This is an example of text to remove stopwords.",
    {"exemple", "text"}
)

Result

"remove stopwords."

Clone this wiki locally