Ranking theory, edit distance and minimally different possible worlds