{"id":500,"date":"2013-09-29T22:34:18","date_gmt":"2013-09-30T05:34:18","guid":{"rendered":"http:\/\/starcraft.kevinleung.com\/?p=500"},"modified":"2013-12-30T08:56:50","modified_gmt":"2013-12-30T16:56:50","slug":"hierarchical-tags-for-spawning-tool","status":"publish","type":"post","link":"http:\/\/blog.spawningtool.com\/?p=500","title":{"rendered":"Hierarchical tags for Spawning Tool"},"content":{"rendered":"<p>I just deployed one of the most exciting Spawning Pool updates ever. Well, most exciting to me, that is: hierarchical tags. Previously, to tag something on Spawning Tool, there were a few heuristics applied to the replays on upload, but the rest were manual tagging of categories and tags. Now, there is structure behind the tags so that a whole tree of tags can be applied when you apply only a single one. This is probably best explained by example.<\/p>\n<p>The primary use case for this feature is build orders. Let&#8217;s say you open &#8220;15 Hatch, 17 Pool&#8221;. That itself is a tag. This build, however, is also a &#8220;Hatch First&#8221; build as well as a &#8220;Fast Expand&#8221; build. Previously, you would need to enter all 3 of these tags to get the replay to appear under all 3 types, and if you uploaded another &#8220;15 Hatch, 17 Pool&#8221;, you would have to do the work all again. Now, the backend knows the structure that &#8220;15 Hatch, 17 Pool&#8221; is a type of &#8220;Hatch First&#8221; build, so it will implicitly label the build for browsing. Check out\u00a0<a href=\"http:\/\/spawningtool.com\/replays\/?tag=309\">http:\/\/spawningtool.com\/replays\/?tag=309<\/a>\u00a0to see it in action.<!--more--><\/p>\n<p>I think this is the most obvious use case, but I have 2 more examples to share off the top of my head. The first is labeling all replays out of a particular league. Currently, we have replays from DreamHack Valencia and DreamHack Summer in the system, but it&#8217;s difficult to aggregate results across both events. Now, both of those tags have &#8220;League: DreamHack&#8221; as a parent, so you can see all of them at\u00a0<a href=\"http:\/\/spawningtool.com\/replays\/?tag=469\">http:\/\/spawningtool.com\/replays\/?tag=469<\/a>. Or if you&#8217;re a TL groupie, players for TL are now &#8220;children&#8221; of the &#8220;Team Liquid&#8221; tag, visible at\u00a0<a href=\"http:\/\/spawningtool.com\/replays\/?tag=470\">http:\/\/spawningtool.com\/replays\/?tag=470<\/a>.<\/p>\n<p>So I&#8217;m really excited about this because:<\/p>\n<ol>\n<li>It reduces a lot of manual labor. Getting good, clean, labeled data is hard, and this will bootstrap that process<\/li>\n<li>It adds tremendous richness to the data. Along the same lines, we can take a small amount of work and generate a lot of tags to browse through<\/li>\n<li>It&#8217;s technically cool. I&#8217;m proud of the implementation*, and I think that hierarchical tags (with categories) is one of the best, most flexible ways to characterize data in general.<\/li>\n<\/ol>\n<p>Of course, it isn&#8217;t completely free. It only works with the hierarchy defined, and that still requires legwork (though exponentially less than previously). If you&#8217;re interested in helping out with that, please let me know (<a href=\"https:\/\/twitter.com\/spawningtool\">@spawningtool<\/a>\u00a0or email spawningtool@gmail.com), and I can hook you up with additional permissions for that.<\/p>\n<p>* there are DEFINITELY bugs. Email me if you find any<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just deployed one of the most exciting Spawning Pool updates ever. Well, most exciting to me, that is: hierarchical tags. Previously, to tag something on Spawning Tool, there were a few heuristics applied to the replays on upload, but &hellip; <a href=\"http:\/\/blog.spawningtool.com\/?p=500\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[57],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-spawning-tool","tag-hierarchicaltags"],"_links":{"self":[{"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":2,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":561,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/561"}],"wp:attachment":[{"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.spawningtool.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}