Comment Seems like a good idea generally. Articles can (mostly should) have more than one "main subject" (keyword); your approach as described on the linked page will limit the bot to just adding one per article, is that right? Have you discussed with any other folks who've been working on this? @Daniel Mietchen: for example? ArthurPSmith (talk) 12:05, 14 February 2019 (UTC)
Yes. Articles have more than one main topic. Since the script runs one query per pair, it will add as many main topic as there is relevant keywords in the title. For example if the dictionary has keywords : ... Opioid, Naltrexone, Fibromyalgia, ... The article : "Low dose Naltrexone prevent Opioids induced inflammation in patients with Fibromyalgia." will be granted the 3 main topics.
Once the dictionary will be complete enough a part of the job of adding main topics will be handled painlessly. Of course, the job of completing the dict is already quite a big thing to do. The dict could even later be used for other scripts. I.e. gathering PubMed tags and searching for matchs.