Skip to content

Levenshtein similarity measures how similar two strings are, based on the minimum number of operations required to make them identical.

Usage

levenshtein_similarity(s1, s2)

Arguments

s1

The first string.

s2

The second string.

Value

A numeric value representing the Levenshtein similarity.

Examples

levenshtein_similarity("kitten", "sitting")
#> [1] 4