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: modify term sorting algorithm
Modify term sorting to priorize first terms that have a longer close body. Terms with longer cloze bodies have matched more text and may represent a more accruate match in most cases. Next check for expression size if the close is the same. This prioritizes expressions like すみません which may have its own definition, but also deconjugations to another valid term. Then deconjugations with more steps are priortized as they may reperesent more accruate terms. Finally score is used if all else fails.
- Loading branch information