powered by
An edit distance for use in Dialectometry. Allows for normalization by dividing alignment length, and for accommodating multiple responses with Bilbao distance, as proposed by Aurrekoetxea et al (2020).
leven(vec1, vec2, alignment_normalization = FALSE, delim = NULL)
A vector of words.
A vector of words to be compared against.
A logical value, indicating whether or not the difference scores are to be normalized by alignment length.
An optional delimiter, in situations where multiple responses exist in the data.
A number indicating the number of operations to transform a string to the other, which optionally may undergo length normalization.
Aurrekoetxea, G., Nerbonne, J., and Rubio, J. 2020. Unifying Analyses of Multiple Responses. Dialectologia, 25:59<U+2013>86.
# NOT RUN { leven("hit", "hot/hit", alignment_normalization = TRUE, delim = "/") # }
Run the code above in your browser using DataLab