hayaku/Hayaku-Core — Issue #28: Another algorithm to select one of the conflicted properties
Author: kizu
Created: 2011-11-28 14:00:22+00:00
State: open

You must lower the priority of the “find” of an abbreviation if the same abbreviation without the last char is corresponding to the same property and the abbreviation have a gap between those chars.

Imagine the have those properties:

aaaaa
abcdef1
abcdef2
abcdef3

- for `abd` three variants fit, but there is a gap for them between `b` and `d`, so we must look below:
- for `ab` again all three variants are suitable, so, look below:
- for `a` noone from those three variants fit, so we go to the previous abbreviation, find the “find” that is first in a list or is more popular, then go to the previous findings and now we have only two of them, from which we get the most popular one.

So, for the `abdf ` in the same way the priorities for the `abcdef1` and `abcdef2` would be lowered and the `abcdef3` would be selected.