Feeling a little iffy on this function to calculate the mean edit distances of a list of words...

github.com/sts10/tidy/blob/mai

Follow

@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 - 1
for #2 should be j = 0 to i - 1

No?

· · Web · 1 · 0 · 0

@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.

Sign in to participate in the conversation
TableToot: Chatter for Tabletop Gamers

Tabletop gaming chatter in a moderated space. An inclusive community we'd like to hang out in.