Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/dict/dictionary: fix duplicates in search results
Fix duplicates appearing in search results. This happened because terms were sorted by their surface length, when they should have been sorted by deconjugation length. This is because deconjugations will be used to search for terms, so duplicate deconjugations means duplicate search results. This fixes the issue by sorting by decending conjugation length, breaking ties by prioritizing the longest surface.
- Loading branch information