[03:32:56] David On Wikidata sitelink ( (https://www.wikifunctions.org/wiki/Z6039)Z6039 (https://www.wikifunctions.org/wiki/Z6039)) (https://www.wikifunctions.org/wiki/Z6039), one of the keys (Z6039K3) has a fixed limited set of values. I wonder if these should be enumerated in a lightweight enum? Is there a reason magic strings have been chosen? [11:55:44] Or it could just be an ordinary enumeration… but it would be good to pick *Wikipedia* rather than typing "wiki". I suppose we could enumerate as persistent Z6 objects and specify by reference until *T405810* is progressed. (re @u99of9: David On Wikidata sitelink (Z6039), one of the keys (Z6039K3) has a fixed limited set of values. I wonder if these should be en...) [19:21:50] Hi, [19:21:50] I was looking if there was a function that turn a string into the corresponding LID(s). I can't find anything (except that I talked about it last October: Wikifunctions_talk:WikiProject_Wiktionary_functions) [19:21:52] Thus, I have 2 questions: [19:21:53] - did I missed it? [19:21:55] - beyond this specific case, could someone build a tool/gadget/script/give a tip to search functions by specifying the input(s) and/or output(s) datatype? (I feel like I already asked for this, sorry if it's the case) [19:29:06] my solution right now is to do : https://www.wikifunctions.org/w/index.php?title=Special:WhatLinksHere/Z6095 (but it's only one datatype and it doesn't distinguish input/ouput nor function/implementation/test) [21:48:27] For return type, this seems to work: search for something like `insource:/\"Z8K2\": \"Z89\"/` [21:48:28] `Z8K2` is return type so it's constant. `Z89` is an example; here, it's HTML fragment. It should work with other types, too. Just find the right ZID. (re @NicolasVIGNERON: Hi, [21:48:29] I was looking if there was a function that turn a string into the corresponding LID(s). I can't find anything (except that I...) [21:48:50] Similar for input type. This seems to work: insource:/\"Z17K1\": \"Z6001\"/ [21:48:50] `Z17K1` is argument type. [21:48:52] `Z6001` is Wikidata item, but it should work with any ZID. [21:49:13] The backslashes before the `"` characters appear to be necessary. [22:15:01] Please see [Wikifunctions:Find]. You shouldn’t need insource because the alphanumerics are fully tokenised for search. From https://www.wikifunctions.org/w/index.php?search=%3A+%22Z8K2+z6095%22&title=Special%3ASearch we can see Z22249. But I think perhaps you want the LID given a lexeme form, which we discussed on [Wikifunctions talk:WikiProject Wiktionary functions]. (re@ [22:15:02] NicolasVIGNERON: Hi, [22:15:02] I was looking if there was a function that turn a string into the corresponding LID(s). I can't find anything (except that I...) [22:16:23] https://www.wikifunctions.org/wiki/Wikifunctions:Find [22:16:25] https://www.wikifunctions.org/wiki/Wikifunctions_talk:WikiProject_Wiktionary_functions (re @Al: Please see [Wikifunctions:Find]. You shouldn’t need insource because the alphanumerics are fully tokenised for search. From http...) [22:21:38] Z22249 is not what I'm looking for, we need a function that takes the string "dog" and return the lexeme where the lemma (and/or form) is "dog" (L1122) [22:21:38] But still a very useful answer, thanks (re @Al: Please see [Wikifunctions:Find]. You shouldn’t need insource because the alphanumerics are fully tokenised for search. From http...) [22:27:29] That’s what I thought. Someone would need to file a Feature request for the Lexeme search built-in. I nearly got round to it on Saturday… 😏 (re @NicolasVIGNERON: Z22249 is not what I'm looking for, we need a function that takes the string "dog" and returns the lexeme where the lemma (and/o...)