diff --git a/string_distance.lua b/string_distance.lua index fb36603..7845bf3 100644 --- a/string_distance.lua +++ b/string_distance.lua @@ -188,7 +188,7 @@ local function strings_with_highest_similarity (str, list_of_other_str) local total_sim = 0 for _, similarity_func in ipairs(SIMILARITY_METRICS) do local sim, max_sim, min_sim = similarity_func(str, other_str) - assert(min_sim <= max_sim) + --assert(min_sim <= max_sim) total_sim = total_sim + (sim-min_sim)/(max_sim-min_sim) end possible[#possible+1] = {other_str, total_sim}