Skip to content

A suggestive tool

Do you know what “Stomatitis” is? Neither did I. But there is an article about it on German Wikipedia, and when I found it, it had a blank Wikidata item. Now, I happen to speak German, but I have run into plenty of other blank items with, say, a Russian Wikipedia article, which is not exactly my forte. I could go to Google translate, but oh so inconvenient. And then I’ll have to figure out which properties and items I should link to are. Easy enough for “human” (P31:Q5) to remember, but what was the item for “sex:female” again?

Then I thought: I might not know what the text of the article says, but I bet it is in one or more categories. And these categories have other articles in them, articles similar to the article I can’t read. And many of these articles should have Wikidata items. So I could look at these items, see what statements are common among those, and some of the top ones will probably apply to my blank item as well.

You all know what we need now: More tools! So I wrote some code on Labs, which will give me the “statement ranking” for a single language. I also wrote a JavaScript wrapper around it. It will add a link called “Suggestor” to your toolbar on the left. This is what it looks like:

Screen Shot 2015-08-14 at 22.32.45

It’s definitely a disease, and the “medical specialty” looks right too. If the source describes it, I do not know, but it might be worth finding out.

To add this handy function to your Wikidata experience, simply add

importScript( 'User:Magnus_Manske/suggestor.js' );

to your common.js user subpage. Enjoy!