levenshtein_normalized_distance: Normalized Levenshtein Distance

View source: R/RcppExports.R

levenshtein_normalized_distanceR Documentation

Normalized Levenshtein Distance

Description

The normalized Levenshtein distance is the Levenshtein distance divided by the maximum length of the compared strings, returning a value between 0 and 1.

Usage

levenshtein_normalized_distance(s1, s2)

Arguments

s1

The first string.

s2

The second string.

Value

A numeric value representing the normalized Levenshtein distance.

Examples

levenshtein_normalized_distance("kitten", "sitting")

RapidFuzz documentation built on April 3, 2025, 11:52 p.m.