Tool

Text

Text Distance

Text Distance

Text

Compute the Levenshtein distance between two fragments of text

Docs for v4.0.3, the latest version.

ID

tool-text-text-distance

Group

Text

Plugin

Tool

Keywords

textDist
textLeven
2 inputs, 1 output, 1 config port

Ports

Inputs

2

What the node takes in, from wires or typed values.

Text 1

String

First text fragment

Text 2

String

Second text fragment

Outputs

1

What the node gives out, to wire into other nodes.

Distance

Number

Levenshtein distance between the two fragments

Config

1

Settings on the node itself, changed in its panel.

Case Sensitive

Boolean

Default true

Compare using case-sensitive matching

Creation method#

There are two options for creating a Text Distance node.#

  • The first way to create a Text Distance node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • textDist , textLeven
  • The second way is to select a Text Distance node from the menu that opens from the top left.
    • Menu > Tool > Text > Text Distance

Steps#

  • Create a Text Distance node.
  • Connect the first text fragment to the first port.
  • Connect the second text fragment to the second port.
  • Connect the boolean toggle for comparison using case-sensitive matching to the third port.

After creating a node, to the first port, connect the first text fragment. Connect the second text fragment to the second port, and the boolean toggle for comparison using case-sensitive matching to the third port. On the output port, we will get the result Levenshtein distance between the two fragments.

See also#

Characters
Text Join
Concatenate
Text Case
Text Length

History

Added in v2.1.19

Oct 20, 2026