Wikifunctions:Project chat

(Redirected from Wikifunctions:CHAT)
Latest comment: 1 day ago by ScienceD90 in topic Type validators not working
Shortcut:
WF:CHAT

Welcome to the Project chat, a place to discuss any and all aspects of Wikifunctions: the project itself, policy and proposals, individual data items, technical issues, etc.

Other places to find help:

SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days.
Archive
Archives

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)Reply

@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)Reply
I still get the "User does not have permission to edit" error. --Autom (talk) 11:18, 18 May 2024 (UTC)Reply
@Autom: Is this still happening? For which kind of edits? -- DVrandecic (WMF) (talk) 19:43, 30 May 2024 (UTC)Reply

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)Reply

  This section is resolved and can be archived. If you disagree, replace this template with your comment. Sannita (WMF) (talk) 11:56, 7 June 2024 (UTC)Reply

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)Reply

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)Reply
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)Reply

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)Reply

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)Reply

  This section is resolved and can be archived. If you disagree, replace this template with your comment. Sannita (WMF) (talk) 11:56, 7 June 2024 (UTC)Reply

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. 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)Reply

Testing two new types

As discussed in today's Volunteers' Corner (recording forthcoming) we will soon be adding two types to Wikifunctions for testing purposes. Both new types will be marked in their labels for now with "do not use". Please do not use them yet. The two types are an enumeration type for signs (positive, neutral, negative, see proposal) and our first complex type, integer numbers, composed of the new sign type and the natural number type (see proposal). We'll keep you updated here about how the tests are proceeding in the following days. If you have questions or comments, please feel free! -- DVrandecic (WMF) (talk) 18:40, 3 June 2024 (UTC)Reply

Wikifunctions & Abstract Wikipedia Newsletter #158 is out: New Type: Sign

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

In this issue, we introduce a new enumeration type, Sign, and we take a look at the latest software developments.

We are also looking for feedback for our next new types. See the announcement at the Project Chat for more information.

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

Enjoy the reading! -- User:Sannita (WMF) (talk) 11:59, 7 June 2024 (UTC)Reply

Type validators not working

There are several types whose validators are not returning an error when they should be.

ScienceD90 (talk) 13:53, 7 June 2024 (UTC)Reply