Roy Smith <r...@panix.com> ezt írta (időpont: 2023. márc. 31., P, 17:25):
> For example, as I noted on the phab ticket, I've got my own code which > determines if an article is a biography. It uses an entirely different > method than your code does. For what I was doing, my method is the right > way. For what you're doing, your method is the right way. It's not clear > that either method is universally the right way, so putting either of those > in the core codebase may impose on everybody something which isn't the > right thing for them. > Thank you for your thoughts. I read your code and found it useful. As you say there, some heuristics is in the thing, so determining whether an article is a biography is not exact, which is a problem. My approach is that there are basic indicators for it, especially P31/Q5. That means it is very likely to be a biography. If it returns a False, we don't say it is not a biography, but that we have to investigate further. What I do is very similar to yours: looking for categories and infoboxes. You found "People and person infobox templates"category. I found Kategória:Személyek infoboxsablonjai in huwiki. These two are connected through Wikidata. https://www.wikidata.org/wiki/Q4574 is something that could be really useful to write a basic code for all Wikipedias, and it has 81 interwikis. Then everybody can add own criteria. Once we decided by specific points of view that a certain article is a biography, we could instantiate a subclass of Page that yould do a lot of things primarily based on Wikidata. That's how I see, An example I have just thought of: as living person templates on talk pages can again be connected through Wikidata, or listed somehow, and so do living person categories, we could have a maintenance script that lists possible contradictions between the article, the talk page and Wikidata if the person is living or dead. We could offer this in scripts directory for those who cannot code themselves. I wote something, but nobody will use it in any other Wikipedia. Now if there is nobody in a small wiki who is able and willing to code this, they won't have the feature.
_______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/DXZDHM2R7CWALRVHUWWKAU5I5DTMB2KR/ To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org