Tool

Text Distance

Text

Compute the Levenshtein distance between two fragments of text

Docs for v2.1.18, the latest version.

ID

tool-text-text-distance

Group

Text

Plugin

Tool

Keywords

textDist
textLeven
3 inputs, 1 output

Ports

Inputs

3

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

Text 1

String

First text fragment

Text 2

String

Second text fragment

Boolean

Boolean

Default true

Compare using case-sensitive matching

Outputs

1

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

Distance

Number

Levenshtein distance between the two fragments

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

First documented in v2.1.18

Oct 20, 2026

Versions before it were published before changes were recorded.