[aspell-devel] Inconsistent calling of edit distance function in suggest
From:
Paraag Goyal
Subject:
[aspell-devel] Inconsistent calling of edit distance function in suggest.cpp
Date:
Sat, 15 Sep 2007 17:04:02 -0700
Hi,
In my application, it seems to me (at this point at least) that I will need to adjust the edit distance weights making "del1" and "del2" different. While experimenting with this, I found that
suggest.cpp calls the edit_distance functions with the first two arguments (the original word/original soundslike, the candidate word/candidate soundslike) inconsistently. For example, in the released version 0.60.5,
But on lines 1030, 1044, 1106, 1121: "original" word and soundslike are the _first_ argument i->word_score = edit_distance(original.clean, i->word_clean,.....);
i->soundslike_score = edit_distance(original.soundslike, i->soundslike , parms->edit_distance_weights);
Of course, I see that the default values of del1=del2=95, so it makes no difference right now. But, when those two are different, the inconsistency will show its effects...