Wikifunctions:Project chat/Archive/2024/05


Wikifunctions & Abstract Wikipedia Newsletter #153 is out: Team meeting and Quarterly plan

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we discuss the results of our team meeting held in San Francisco, USA, as well as presenting the objectives that we will pursue in the next months.

Want to catch up with the previous updates? Check our archive.

Enjoy the reading! -- User:Sannita (WMF) (talk) 12:57, 4 May 2024 (UTC)

This section was archived on a request by: Sannita (WMF) (talk) 17:49, 23 May 2024 (UTC)

Next Wikifunctions & Abstract Wikipedia Volunteer's Corner is on May 6

We remind you that if you have questions or ideas to discuss, the next Volunteers' Corner will be held on May 6, at 17:30 UTC (link to the meeting).

Apologies for the reaching out to you with a separate message.

See you at the meeting! -- User:Sannita (WMF) (talk) 13:12, 4 May 2024 (UTC)

Quick update: the recording of the Volunteers' Corner is now available on Wikimedia Commons. Enjoy! --Sannita (WMF) (talk) 09:24, 9 May 2024 (UTC)
This section was archived on a request by: Sannita (WMF) (talk) 17:49, 23 May 2024 (UTC)

Wikifunctions & Abstract Wikipedia Newsletter #154 is out: Flagship type for enumerations: Months of the Gregorian calendar

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we discuss our first proposal for a new type for enumerations and we take a look at the latest software developments.

Want to catch up with the previous updates? Check our archive.

Enjoy the reading! -- User:Sannita (WMF) (talk) 12:22, 13 May 2024 (UTC)

This section was archived on a request by: Sannita (WMF) (talk) 17:49, 23 May 2024 (UTC)

Wikifunctions & Abstract Wikipedia Newsletter #155 is out: Call for Functions: Spell out the number!

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we call on you to help us doing new language functions about numbers and we also take a look at the latest software developments.

Want to catch up with the previous updates? Check our archive.

Enjoy the reading! -- User:Sannita (WMF) (talk) 18:01, 16 May 2024 (UTC)

This section was archived on a request by: Sannita (WMF) (talk) 17:49, 23 May 2024 (UTC)

Wikifunctions & Abstract Wikipedia Newsletter #156 is out: New type - Gregorian calendar months

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we announce our initial enumeration Type, Gregorian calendar months, and we take a look at the latest software developments.

Want to catch up with the previous updates? Check our archive.

Enjoy the reading! -- User:Sannita (WMF) (talk) 12:18, 23 May 2024 (UTC)

This section was archived on a request by: Sannita (WMF) (talk) 11:56, 7 June 2024 (UTC)

Wikifunctions & Abstract Wikipedia Newsletter #157 is out: A single singular or a plurality of plurals?

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we discuss the various implications of linguistic functions about singulars and plurals, and we take a look at the latest software developments.

Want to catch up with the previous updates? Check our archive!

Also, we remind you that if you have questions or ideas to discuss, the next Volunteers' Corner will be held on June 3, at 17:30 UTC (link to the meeting).

Enjoy the reading! -- User:Sannita (WMF) (talk) 12:17, 31 May 2024 (UTC)

This section was archived on a request by: Sannita (WMF) (talk) 11:56, 7 June 2024 (UTC)

Editing issue

I made this edit, which was undone a few seconds later, seemingly by myself. When I tried to redo the edit, i got this error message. --Autom (talk) 16:12, 9 May 2024 (UTC)

@Autom: Hi there, this is odd; it might be related to a production issue we had last week. Have you had it happen further? Jdforrester (WMF) (talk) 13:50, 16 May 2024 (UTC)
I still get the "User does not have permission to edit" error. --Autom (talk) 11:18, 18 May 2024 (UTC)
@Autom: Is this still happening? For which kind of edits? -- DVrandecic (WMF) (talk) 19:43, 30 May 2024 (UTC)

Numbers

Hi y'all,

The last newsletter Wikifunctions:Status updates/2024-05-30 talks about numbers, plural and building "simple" sentences like “There are four apples.”

But in many languages, such sentences are not that simple.

For example in Breton, numbers are quite weird. “There are four apples.” is “Pevar aval zo” (or “a zo” or “ ’zo” in the end, but that's beside the point here). It seems simple but :

  • numbers with units 2,3 4 depends on the gender of the noun (« pevar aval » “four apples” masculine but « peder logodenn » “four mice” feminine)
  • there is no agreement, the noun stays at the singular form (or collective form for words without a singular)
  • when written in letters, the noun goes between the number and the rest of the number: 33 apples is « pevar aval ha tregont » (litteraly: “3 apple and 30”)
  • as always in Breton, words mutates (after the units 2, 3, 4 and 9 ; 2 is soft “2 dogs” is « daou gi » Breton soft mutation (Z11619) and 3, 4 9 is spirant “3 dogs” is « tri c'hi » m. or « teir c'hi » f. Breton aspirant mutation (Z11632))
  • and of course, there is exceptions and variations... (like « peder avel » “four winds” masculin but behave like a feminine)

And obviously, all of these happens at the same time. I'm not sure how we can deal with inside a function.

Cheers, VIGNERON (talk) 21:32, 30 May 2024 (UTC)

Wikifunctions labels in functions

I’ve created a few functions for getting labels out of Persistent objects. It turns out that this is quite tricky, so in the next couple of days I plan to create a Feature Request on Phabricator to make it better.

Tracked in Phabricator:
Task T366459

Please feel free to make suggestions or ask questions.

object labels (Z16556) returns the Z2K3 Multilingual text (Z12) that contains the labels (a Typed list). There is a usability issue here because we have to supply a reference but the interface invites us to enter an object. (Also, no test will pass. That is this bug.)

object label (Z16568) tries to find an item in the list that matches a particular language and returns the associated string (the label). There is no concept of a fallback language here. This function relies on object labels (Z16556) so, again, we have to supply a reference.

string for a language (Z16560) is called by object label (Z16568) to scan through the list looking for a matching language (key) and returning the associated string (value).

month label (Z16580) is not currently working but it has returned a label for each month, specified as an object rather than a reference (but only while it is being edited.) There is definitely a bug here, because when the composition is saved, its references are converted into literal strings.

This is inconvenient because (a) it doesn’t work (b) there are twelve references to re-enter before it can work in edit mode and (c) it is likely to time out anyway. A partial implementation is month label (three months) (Z16583). Feel free to play around with that.

Where do we go from here? GrounderUK (talk) 22:35, 31 May 2024 (UTC)