giacomocavalieri / edit_distance

📝 A pure Gleam package to compute the edit distance of two strings
https://hexdocs.pm/edit_distance/
Apache License 2.0
5 stars 1 forks source link

[Feature] Allow assigning different weights to edit operations #4

Open NicklasXYZ opened 1 month ago

NicklasXYZ commented 1 month ago

Possibly add the ability to apply different weights to each operation—such as insertion, deletion, substitution, transposition, etc. — when calculating string similarity. This would allow more granular control over the distance metric by giving more importance to certain operations based on the context.

giacomocavalieri commented 1 month ago

That sounds interesting, I'm not really an expert with the string distance algorithms but it should be doable

NicklasXYZ commented 1 month ago

Awesome, I can also get to it at some point :)