Skip to content

Levenshtein Distance

Purpose of the Node

This node calculates the Levenshtein distance between two strings. The Levenshtein distance is a measure of the similarity between two strings, defined as the minimum number of single-character edits (insertions, deletions, or substitutions) required to change one string into the other. Optionally, the distance can be normalized to a value between 0 and 1.

Pins

Pin NamePin DescriptionPin TypeValue Type
StartConnect this pin to start the node’s executionStart-
string1First StringInputString
string2Second StringInputString
normalizeNormalize the DistanceInputBoolean
EndConnect this pin to receive the node’s outputEndFloat
distanceLevenshtein DistanceOutputFloat