Jump to content

User talk:MolecularPilot

From Wikifunctions
Latest comment: 1 month ago by MolecularPilot in topic Regexes

To be, in French

Hi MolecularPilot. I add a translation in French to your function about the verb « être ». Why we don't use the 22 tenses ? For example, there is the possibility of having tenses stored like months (like Z16107) and possible to be translated, just like pronouns in order to be able to have drop-down lists translatable in a large number of languages. I have no knowledge of programming. These elements could be used to conjugate other verbs. I also wonder about the units of measurement. Jérémy-Günther-Heinz Jähnick (talk) 21:49, 12 January 2025 (UTC)Reply

Hi, thank you for adding the translation! I was just starting simple with the function, so I only coded 3 tenses (Présent, Passé composé and Futur simple) but having more is definitely a plan for the future.
I think having types (and thus dropdowns) for the tenses and pronouns would be great because it would make the functions a lot easier to use and as you said, there's a lot of other conjugation functions to make, today I was planning on making a function for regular -er verbs.
Unfortunately, types can currently only be created by WMF staff and the type request page is horribly backlogged. I have created type proposals for both French tenses and subjects which would make using the functions a lot better (see Wikifunctions:Type proposals/French tenses and Wikifunctions:Type proposals/French subjects) so hopefully they will eventually get implemented if enough people express support/a want for them. There's also a proposal for a units of measurement but we are still waiting for them to be made by the WMF and the proposal hasn't been touched since November 2024.
Thank you again for your feedback on the functions and helping to do the translations! :) MolecularPilot (talk) 01:25, 13 January 2025 (UTC)Reply
I have just updated the function to support all 22 tenses! :) MolecularPilot (talk) 02:02, 13 January 2025 (UTC)Reply
I've now made Conjugate regular -er verb (Z21617), Conjugate regular -ir verb (Z21624) and Conjugate regular -re verb (Z21632) for conjugating -er, -ir and -re verbs in all 22 tenses for each possible pronoun or subject. :) MolecularPilot (talk) 04:16, 13 January 2025 (UTC)Reply
Good work, I start to translate. Jérémy-Günther-Heinz Jähnick (talk) 09:36, 13 January 2025 (UTC)Reply
Thank you so much again for your translations! :) MolecularPilot (talk) 09:41, 13 January 2025 (UTC)Reply

Bibliography

Hi MolecularPilot. On the French Wikipedia we have fr:Modèle:Bibliographie (code is at fr:Module:Wikidata/Références), it follow fr:ISO 690. Do you think it is possible to create a function where, with a given Q-ID, we can display for example "Amélie Nothomb, Stupeur et tremblements, Éditions Albin Michel, 1999 (ISBN 2-226-10950-1, OCLC 231856420)." ? You have an exemple of the use at Robert Machut in my town. I think it would be a great function, surely composed of smaller functions, because there is a gain to share datas about books in different Wikipedias, even if we don't have the same language. Jérémy-Günther-Heinz Jähnick (talk) 01:27, 19 January 2025 (UTC)Reply

Hi! I definitely think it is possible (sorry I didn't see this sooner), that's an amazing idea for a function and I think it would be really helpful. I'll start working on some of the code. Thank you for finding this! :) MolecularPilot (talk) 05:52, 21 January 2025 (UTC)Reply
I use Bibliographie and derivatives since years (it is an ecosystem of templates about references), in fact it should be the base of reuse of datas of Wikidata in Wikipedia articles : an user add a source in its language, all the Wikipedias (that have the program) benefit of the reference. Here, with such a function, an user translate an article : he already have the list of books. Jérémy-Günther-Heinz Jähnick (talk) 15:49, 22 January 2025 (UTC)Reply
Yeah, I think it would be very useful for stuff that like. I've had some difficulties but I've nearly got it ready! :) MolecularPilot (talk) 08:19, 23 January 2025 (UTC)Reply

Regexes

Somewhere, I feel like I saw you say that the regex module in Python isn't available on this wiki (or maybe it was someone else). Regardless, it is. JJPMaster (she/they) 21:44, 23 January 2025 (UTC)Reply

Hi JJPMaster! Welcome to Wikifunctions! Yes, I think I did say that, it was because I was putting import re at the top of the file, which caused an error! Thanks for giving the link, I see now that it's possible to import re but under the function signature definition. :) MolecularPilot (talk) 00:43, 24 January 2025 (UTC)Reply