Suggestions with the same matching percentage are not sorted by usage. as shown in the screenshot:
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Translation Memory: Sort suggestions with same percentage by usage | mediawiki/extensions/Translate | master | +19 -4 |
Event Timeline
Comment Actions
- I am concerned about the sorting of the suggestions using both the quality and count properties. Which one should take precedence?
There's nothing in the code to suggest that the suggestions with quality of 1 will always appear at the top of the list of suggestions.
Comment Actions
Change 770448 had a related patch set uploaded (by Wangombe; author: Wangombe):
[mediawiki/extensions/Translate@master] Sort suggestions with same percentage by usage
Comment Actions
Here's my recommendation:
- Sort on the basis of similarity / matching % (100%)
- Then sort on the basis of the number of uses
Currently the order is done on the backend. See: https://gerrit.wikimedia.org/g/mediawiki/extensions/Translate/+/54c5b26dd7a8dc1d02ccd98081ebe02cf3b61239/ttmserver/ElasticSearchTTMServer.php#224
I recommend doing the sorting on the basis of usage there itself if possible.
Comment Actions
Change 770448 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Translation Memory: Sort suggestions with same percentage by usage