---
title: "Stem"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/nlp/stem
markdown: https://docs.nodetool.ai/nodes/lib/nlp/stem.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/nlp/stem.md
---

# Stem

**Type:** `lib.nlp.Stem`

**Namespace:** `lib.nlp`

## Description

Stems words to their root form.
    stem, root, morphology, NLP, text processing

    Use cases:
    - Reduce words to their base form for matching
    - Normalize text for search indexing
    - Prepare text for comparison and deduplication
    - Improve text similarity matching

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| text | `str` | The text containing words to stem | `` |
| algorithm | `enum` | Stemming algorithm to use | `porter` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |
| tokens | `list` |  |

## Related Nodes

Browse other nodes in the [lib.nlp](./) namespace.
