Jump to content

Wikifunctions:Status updates/2025-02-13

From Wikifunctions
◀ Wikifunctions Status updates Translate ▶

Abstract Wikipedia via mailing list Volunteer Response Team Abstract Wikipedia on IRC Wikifunctions on Telegram Wikifunctions on Mastodon Wikifunctions on Twitter Wikifunctions on Facebook Wikifunctions on YouTube Wikifunctions website Translate

Restricting the World, redux

Twelve years ago, I wrote an essay describing one of the fundamental design choices for Wikidata: Restricting the World.

In that essay I was arguing that the Wikidata software should not restrict the knowledge represented in Wikidata: instead of having fixed fields for each type of entry, Wikidata was designed to allow for any kind of structures. This would allow us to capture as much of the complexities of the world as possible.

It makes reuse more difficult. Because we can never be sure about the structure of an item: will that country item have a capital? A population? How will the family of a person be represented, if at all?

Over the years, numerous features and systems grew in order to support Wikidata with better structuring of its content. A constraint system surrounding properties grew. Schema definitions were introduced. Recommender systems were suggesting missing properties based on the existing structure. All of these, and much more, allowed for the data in Wikidata to grow towards a more cohesive and consistent place.

Now, with Wikifunctions, we are on the other side: instead of a flexible knowledge base, we prefer predictable, strict structures. When writing a Function implementation to get the right form of a verb, we need to know what structures verbs in the given language use. What are the grammatical features that are being used for the forms? Which forms will be given in Wikidata? Which grammatical features will they have?

The flexibility, which I still think is a necessary design decision for a knowledge base such as Wikidata, becomes a minor burden for a system such as Wikifunctions that aims to use that knowledge. But we have unique advantages: both projects can work together, towards a compromise between the flexibility that we need to represent the world in Wikidata, and the requirements for the knowledge representation to become processable in Wikifunctions. Wikifunctions can deal with a certain amount of flexibility, and Wikidata can benefit from a certain amount of unification. Wikifunctions will be like a forcing function for some parts of Wikidata.

One way to resolve some of the tension is to decouple Wikidata from Wikifunctions in certain ways, as we have already been doing. The truth values in Wikifunctions are not Wikidata's Q16751793 and Q5432619, they are Z41 and Z42. The current month of February is Q109 in Wikidata and Z16102 in Wikifunctions. Dagbani is the first language edition of Wikipedia on which Wikifunctions will be enabled; the language is Q32238 in Wikidata and Z1015 in Wikifunctions. Did we get the decoupling right? Probably not. Why do we need labels for February both in Wikifunctions and Wikidata? Do we want to have several different values for the feminine and masculine grammatical genders for several different systems? This is something we want to look very soon at.

But in other cases, decoupling can be very beneficial. By decoupling from Wikidata we can have somewhat more control about the representation as we need it. If the knowledge base changes, we can retain our functionality and move at our own speed, because the representation of Dagbani in Wikifunctions is not meant to represent the language in the sense of an encyclopedia-supporting knowledge base, but merely in a way that is pragmatically useful for Wikifunctions.

All of this is particularly true and relevant for representing lexemes in Wikifunctions, a discussion that is currently ongoing on the project chat and other channels. More about this next week, also in the NLG SIG next week!

Invitation to the NLG SIG meeting on February 18

On February 18, 2025, at 16:00 UTC, we will have our first public Natural Language Generation Special Interest Group meeting on Google Meet. The meeting is planned to be recorded. A wiki page for the NLG SIG has been created, and an agenda is being collected there.

Recent Changes in the software

Only one bug fix will be released this week; most of our efforts have gone towards priority, longer-term work.

We fixed a bug regarding tables on Function pages' tables. The pagination controls never showed up on the Implementations table. They also showed up on the Test cases table only when there were four or more Implementations (T385776).

We, along with all Wikimedia-deployed code, are now using the latest version of the Codex UX library, v1.20.1, as of this week. We believe that there should be no user-visible changes on Wikifunctions, so please comment on the Project chat or file a Phabricator task if you spot an issue.

We also wanted to use this weekly update to highlight that we will be removing the functionality that currently replaces the shown version of a link in Wikitext to an Object with its name. This feature from the early days of the project has suffered from issues related to pages showing in the wrong language, and isn't compatible with our switch to the Parsoid rendering engine anyway (T343483). We will keep the feature for special pages (which don't suffer from this bug), like Special:RecentChanges and Special:WhatLinksHere.

In lieu of the Function of the Week: Schrödinger Model sub shell configuration

The Function of the Week is a column written by the community. Planning the column and submissions can be made here.

Last week I noticed a contributor, MolecularPilot, telling us in the chat how they were doing an assignment while learning chemistry. So they started a function to automate it, calculating Schrödinger’s Model for sub shell configuration.

I really enjoyed the insight they described after they created the Function:

Ironically making the function actually helped me understand the underlying concepts a lot better than just repeating it over and over!! I think making Wikifunctions makes you have to think about something in a kind of computational and logical kind of way using a problem solving mindset.

I hope you enjoy this quote too!

News in Types: Byte

This week we implemented the proposal to fix up the Byte type. We removed the markers from the type so it can be used, and more functions can be created for the Byte type. We are looking forward to having a display and read function for this type available, too.

Fresh Functions weekly

Here is a list of new functions that have been created since last week, with connected implementations and passing tests. This week we had a good number of new functions to celebrate.

We can see a rich variety of functions – and there were even more who didn’t make it to the list because they didn’t have tests or implementations. A comprehensive list of all functions sorted by creation date can be found on-wiki.