45 int deltaBest = 10000;
49 for (
const auto &candidate : candidates) {
50 if (candidate[0] == actual[0]) {
51 int delta = editDistance(actual, candidate);
52 if (delta < deltaBest) {
56 }
else if (delta == deltaBest) {
62 if (numBest == 1 && deltaBest <= 2 && actual.size() + best.size() >= 5)