giacomocavalieri / edit_distance

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

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

Open NicklasXYZ opened 2 months ago

NicklasXYZ commented 2 months 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 2 months ago

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

NicklasXYZ commented 2 months ago

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