{"id":342,"date":"2015-08-19T16:18:27","date_gmt":"2015-08-19T15:18:27","guid":{"rendered":"http:\/\/blog.magnusmanske.de\/?p=342"},"modified":"2015-08-19T16:18:27","modified_gmt":"2015-08-19T15:18:27","slug":"a-quick-description","status":"publish","type":"post","link":"http:\/\/magnusmanske.de\/wordpress\/archives\/342","title":{"rendered":"A quick description"},"content":{"rendered":"<p>So there is a lively discussion about using descriptions from Wikidata in places like Wikipedia search results, especially on mobile. While everyone seems to agree that this is a good idea, camps are forming with supporters of manual and automatically generated descriptions, respectively. Time for an entirely manual description of my POV.<\/p>\n<p>At the time of writing this, there are about 14 million items on Wikidata. The Wikiverse deals with about 250 languages. That comes to ~3.5 <em>billion<\/em> possible descriptions of items, a number that will only increase with time. Right now, less than 4% of these descriptions are filled in, many of them generated by bots (e.g. &#8220;Wikimedia disambiguation page&#8221;, not all of them correctly). And do not kid yourselves, those will stay. They will continue to say &#8220;American actor&#8221;. Even after we add statements about his\/her nationality, gender, birth and death dates, spouses, parents, children, important awards, etc., the description will still say &#8220;American actor&#8221;. There are, by far, not enough volunteers to fill in &gt;3 billion descriptions, especially on the ~240 or so non-&#8220;main&#8221; languages; most have little enough <em>labels<\/em> for the items. Except for <em>maybe<\/em> English, there are no people to go around and improve existing descriptions, probably multiple times for the same item. For most people in the world, Wikidata manual item descriptions are a wasteland, and it&#8217;s here to stay.<\/p>\n<p>But there is an alternative. A bot can look at an item, see it&#8217;s about a person with nationality &#8220;U.S.&#8221;, and occupation &#8220;actor&#8221;. It can, from that, write &#8220;American actor&#8221;. It can, in fact, do much better than that, given the right statements. It will improve its description as more information becomes available. And it can do so in all 250 languages, given a little volunteer effort for each of them. It won&#8217;t win a literature contest any time soon, but it <em>will<\/em> get the basic message across, in most cases.<\/p>\n<p>&nbsp;<\/p>\n<p>As a hands-on person, I wrote a little tool a while ago, which attempts to do just that. Limited by time and my 2-out-of-250 language abilities, it is far from perfect, or even working properly for may languages. But let me give an example.<\/p>\n<p>There is an article about a specific model of &#8220;flying boat&#8221; in several languages, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Dornier_Do_J\">Dornier Do J<\/a>. On Wikidata, there is a (as in: <em>one<\/em>) manual description, in Italian, for the respective item, which reads &#8220;idrovolante Dornier-Werke&#8221;. I don&#8217;t speak Italian, but it looks &#8230; truncated? (Google translate agrees with this assessment.)<\/p>\n<p>So I ran my automatic description on this, for a few languages:<\/p>\n<p><strong>English<\/strong>: <em>Dornier Do J<\/em> : Flying boat by Dornier<br \/>\n<strong>German<\/strong>: <em>Dornier Wal<\/em> : Flugboot von Dornier-Werke<br \/>\n<strong>French<\/strong>: <em>Dornier Do J<\/em> : Hydravion \u00e0 coque par Dornier<br \/>\n<strong>Spanish<\/strong>: <em>Dornier Do J<\/em> : Hidrocanoa por Dornier Flugzeugwerke<br \/>\n<strong>Japanese<\/strong>: <em>Do J<\/em> : \u98db\u884c\u8247 by \u30c9\u30eb\u30cb\u30a8<br \/>\n<strong>Vietnamese<\/strong>: <em>Dornier Do J<\/em> : T\u00e0u bay b\u1edfi Dornier Flugzeugwerke<br \/>\n<strong>Telugu<\/strong>: <em>Q1245981<\/em> : \u0c0e\u0c17\u0c3f\u0c30\u0c47 \u0c2a\u0c21\u0c35 Dornier Flugzeugwerke \u0c1a\u0c47\u0c24 \u0c24\u0c2f\u0c3e\u0c30\u0c41 \u0c1a\u0c47\u0c2f\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f<\/p>\n<p>Perfect? Certainly not. Wrong? In some cases; &#8220;by&#8221; is not really a Japanese word, as far as I know. But I would think that most Japanese readers would know what the item is about, from that description.<\/p>\n<p><a href=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-19-at-16.08.44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-343\" src=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-19-at-16.08.44.png\" alt=\"Screen Shot 2015-08-19 at 16.08.44\" width=\"417\" height=\"68\" srcset=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-19-at-16.08.44.png 417w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2015\/08\/Screen-Shot-2015-08-19-at-16.08.44-300x49.png 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/a>Note that there are no Wikipedia articles about this topic in Vietnamese, nor Telugu. These texts (as good or bad as they may be) could show up in a Telugu Wikidata search. Or a Wikipedia one, even if no <tt>te.wikipedia<\/tt> results were found. The code exists, and <a href=\"http:\/\/magnusmanske.de\/wordpress\/?p=64\">is used<\/a> (e.g. on Italian Wikipedia) already.<\/p>\n<p>You can see the automatic descriptions for the Wikipedia page you are on yourself. Simply add<\/p>\n<pre><span class=\"nx\">mw<\/span><span class=\"p\">.<\/span><span class=\"nx\">loader<\/span><span class=\"p\">.<\/span><span class=\"nx\">load<\/span><span class=\"p\">(<\/span><span class=\"s2\">\"\/\/en.wikipedia.org\/w\/index.php?title=User:Magnus Manske\/autodesc.js&amp;action=raw&amp;ctype=text\/javascript\"<\/span><span class=\"p\">);<\/span><\/pre>\n<p>to your common.js User subpage, or to your <a href=\"https:\/\/meta.wikimedia.org\/wiki\/Special:MyPage\/global.js\">global JavaScript page<\/a>, which will activate it on all Wikipedias you work on. I found this a great way to see where the Wikidata item is lacking, and needs some more statements, or where items need a label in your language.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So there is a lively discussion about using descriptions from Wikidata in places like Wikipedia search results, especially on mobile. While everyone seems to agree that this is a good idea, camps are forming with supporters of manual and automatically generated descriptions, respectively. Time for an entirely manual description of my POV. At the time [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":3,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":346,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/342\/revisions\/346"}],"wp:attachment":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}