Currently lookup algo for DigestDict goes by Python's sorted() using [A-Za-z]. This leads to cases where a substring like "Angelic" resolves to "Angelic Montmorancy" rather than "Angelica" which would be the preferred behaviour.
This should be resolved by iterating the candidate keys in DigestDict ordered primarily by length.
Currently lookup algo for DigestDict goes by Python's sorted() using [A-Za-z]. This leads to cases where a substring like "Angelic" resolves to "Angelic Montmorancy" rather than "Angelica" which would be the preferred behaviour.
This should be resolved by iterating the candidate keys in DigestDict ordered primarily by length.