levenshtein_distance: Levenshtein Distance

View source: R/RcppExports.R

levenshtein_distanceR Documentation

Levenshtein Distance

Description

Calculates the Levenshtein distance between two strings, which represents the minimum number of insertions, deletions, and substitutions required to transform one string into the other.

Usage

levenshtein_distance(s1, s2)

Arguments

s1

The first string.

s2

The second string.

Value

A numeric value representing the Levenshtein distance.

Examples

levenshtein_distance("kitten", "sitting")

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