levenshtein_distance: levenshtein distance of two words

Description Usage Arguments Value Examples

View source: R/utils.R

Description

levenshtein distance of two words

Usage

1
levenshtein_distance(word1, word2)

Arguments

word1

a character string

word2

a character string

Value

a float number

Examples

1
2
3
4
5
6
7
library(textTinyR)

word1 = 'one_word'

word2 = 'two_words'

lvs = levenshtein_distance(word1, word2)

mlampros/textTinyR documentation built on Nov. 1, 2021, 8:44 a.m.