Jump to content

Wikifunctions:Project chat/Archive/2024/05

From Wikifunctions
Latest comment: 3 months ago by DVrandecic (WMF) in topic Call for calendar month proposals!


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)

Call for calendar month proposals!

Hi all!

We recently released the Gregorian calendar months. We want to follow with other calendar systems rather quickly. It would be great if folks could create Type proposals for that. I don't want to start making calendar months for calendars I am not familiar with. Here is the Type proposal for Gregorian calendar month, feel free to use this as a template for the other ones.

If you need any help or have questions, please reach out and feel free to ask. Thank you! -- DVrandecic (WMF) (talk) 00:02, 24 May 2024 (UTC)

In that context, can I also encourage consideration of this type proposal Wikifunctions:Type proposals/configuration of functions for given types which would help to harness similar functions for closely related types. (e.g. calling a "next month" function on any type of month.) --99of9 (talk) 03:43, 24 May 2024 (UTC)
Good idea. Although it refers to “given types”, I think it could be easily extended to include “given identities” (which could also extend to “given languages”). I think we would still need to improve the orchestration approach to make it selective, as outlined in my comments on the proposal. Perhaps we should raise a Feature Request for this on Phabricator? GrounderUK (talk) 07:59, 24 May 2024 (UTC)
@99of9: agree with @GrounderUK that it's a good idea! I will take a closer look after next week. --DVrandecic (WMF) (talk) 16:55, 13 June 2024 (UTC)