latest
Text
Text Distance

Compute the Levenshtein distance between two fragments of text

ID

662ae7a510b6cb87640c92ce

Name

Text Distance

Group

Text

Package

Tool

Keywords

textDist
textLeven

Surface

Vector

Transform

Primitive Curves

Curve Analysis

Toolset

Triangulation

Boolean Operation

Panels

Solid

Intersection

Text

Image

Analysis

Array

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

Inputs

NameTypeDescriptionDefault Value
text1
String
First text fragment
text2
String
Second text fragment
boolean
Boolean
Compare using case-sensitive matching

Outputs

NameTypeDescription
distance
Number
Levenshtein distance between the two fragments