proycon / analiticcl

an approximate string matching or fuzzy-matching system for spelling correction, normalisation or post-OCR correction
GNU General Public License v3.0
31 stars 4 forks source link

add failing test for incorrect lexicon in output #8

Closed brambg closed 3 years ago

brambg commented 3 years ago

When the VariantModel has multiple lexicons, in the find_all_matches results only the first lexicon is shown in the results, even when the match is from the other lexicon. I added a test with 2 non-overlapping lexicons.

proycon commented 3 years ago

Thanks! Looks good, I rebased things a bit (made the 2nd commit a fixup to the first one so the unnecessary file don't pollute the history) and merged the resulting commit.