Jump to content

Community Wishlist Survey 2017/Wiktionary/Context-dependent sort key

From Meta, a Wikimedia project coordination wiki

Context-dependent sort key

  • Problem: In most Wiktionary projects, words of different languages share a page if their spellings are identical. Currently, the magic word DEFAULTSORT works for an entire page, which means we cannot define a default sort key for each language in the same page. That is an issue especially for Chinese and Japanese. They share characters but their sort keys are totally different (pinyin for Chinese, hiragana for Japanese). If it is allowed to define a default sort key for each section, it will be much easier to correctly categorize pages.
  • Who would benefit: Editors of Wiktionary, especially those who edit Chinese and Japanese entries.
  • Proposed solution: Introduction of a new magic word, say, SECTIONSORT, that works for all categories after it up to the next usage of the same magic word. SECTIONSORT should override DEFAULTSORT if both are defined. The use of SECTIONSORT without a sort key should clear the previous sort key (and should not define an empty sort key).
  • More comments:
  • Phabricator tickets:

Discussion

[edit]
  • This is a crucial issue in doing a dictionary to have wrong classifications for the entries. This problem is here since the beginning of Wiktionary and may be solve in a year, so I think it is a great suggestion for this survey Noé (talk) 09:34, 21 November 2017 (UTC)[reply]
  • Yes, because the current solution is neither easy nor elegant. PS: it concerns many languages (ex: Swedish vs Norwegian, Russian vs Ossetian, etc.). JackPotte (talk) 11:06, 21 November 2017 (UTC)[reply]
  • to me this just looks completely wrong. We have language specific versions of a wiki, linking to multiple translations of a term, and then expect to do multilingual sorting in categories... That's not what a wiki page is supposed to do.. This is an example of using the wrong hammer to solve your problem I think. Someone needs to take a deep look at technology for wiktionary and draw up a plan to make this more sustainable. —TheDJ (talkcontribs) 15:13, 29 November 2017 (UTC)[reply]
    The Latin Wiktionary separates each language section (cf. wikt:la:de (fr), wikt:la:de (nl)) but all other Wiktionary projects combine different language entries in one page if they share the same spelling. — TAKASUGI Shinji (talk) 10:00, 2 December 2017 (UTC)[reply]
  • IMHO the sort problem (at least in wiktionaries) is not a "page" problem but a category problem. We should be more directed to create "category" sort keys (which probably will solve allmost all problems) and not a new section key. General categories (ex. categories for "pages with errors") should have no key but categories for specific languages (or dialects of a language) should include a (say) CATSORT key.--Xoristzatziki (talk) 20:39, 9 December 2017 (UTC)[reply]
    You can specify a sort key for a category now. That is not a problem. In the case of Wiktionary, each entry often has quite a few categories. See wikt:en:日本 for example. Japanese categories should use a sort key of にほん, while Korean categories should use a sort key of 일본. Specifying an appropriate sort key for each category is possible but redundant and very tiresome. — TAKASUGI Shinji (talk) 05:33, 11 December 2017 (UTC)[reply]

@TAKASUGI Shinji: Vote is over now. Twenty votes, it's quite good. Should we put forward this proposal in Phabricator? I think a ticket could be a way to keep track of this request and may be appealing for a dev in the future. What do you think? Noé (talk) 07:08, 18 December 2017 (UTC)[reply]

Yes, that’s a very good idea. Actually I’m not sure about the procedure on Phabricator. What should I do now? — TAKASUGI Shinji (talk) 08:39, 18 December 2017 (UTC)[reply]
It's quite easy. In Phabricator, you can get an access with your wiki account and then on the top-right corner there is a link "Create task" where you can describe your idea. If I am right, there is two places with names: "subscribers" is for you and I, "assigned to" is for people that take responsability of coding it. There is "tag" where I usually put "Wiktionary" but as your proposal is wider, you may let it blank and someone with a better understanding of Phabricator could fill it. For the specific writing, I am still not very confident, so try to be as specific as possible. I am still a beginner on this platform, so I am sorry if I give you vague advices. Well, people are nice there anyway. Noé (talk) 09:02, 18 December 2017 (UTC)[reply]
Thank you very much. I have created a task: phab:T183747. — TAKASUGI Shinji (talk) 13:47, 28 December 2017 (UTC)[reply]

Voting

[edit]