I need to compute the edit distance between two strings based on a custom cost function for replacements. For example, I want to specify different cost for replacing 'a' with 'b' than replacing 'a' with 'c'
Is there an R package that allows me to pass a custom cost matrix as an argument? If not, I will have to modify a package for this purpose, then which package do you think is good for implementing this kind of extension?
Thanks.