Feeling a little iffy on this function to calculate the mean edit distances of a list of words...
https://github.com/sts10/tidy/blob/main/src/display_information.rs#L129-L145
@schlink That's because I'm pretty sure it's wrong. You want for every (m, n) where m != n, get the edit distance.
for #1 should be i = 0 ... list size - 1for #2 should be j = 0 to i - 1
No?
@schlink Oh and also m < n indexwise. Actually the additional check for same word is pretty... iffy itself. If it's a list of all the same words... the mean edit distance should be 0.
Tabletop gaming chatter in a moderated space. An inclusive community we'd like to hang out in.
@schlink Oh and also m < n indexwise. Actually the additional check for same word is pretty... iffy itself. If it's a list of all the same words... the mean edit distance should be 0.