Tags are magic! - Part 3

In part three of this series of posts based on a presentation given at last year's Online Information conference in London, the Guardian's tag manager Peter Martin and information architect Martin Belam look at how we keep our tags useful for the audience, and in line with house style

Martin Belam, Peter Martin

Published on Wednesday, 26 January 2011

Internet   Tags are magic  

A tag lying across a MacBook keyboard
A tag lying across a MacBook keyboard Photograph: Teamaskins/Flickr

In a series of posts on the Developer Blog, we’ve been looking at how we use tags on guardian.co.uk to drive features on the website and other devices, and to build a taxonomy of subjects. In today’s post, we are looking at how we manage the tags to keep them useful and in house style.

One tag or two? (or three or more?)

While the tags are designed to expose content on a variety of site sections, there are areas that are siloed off from one another because of the nature of the content. There are two China keywords, one in World news and one in Travel. A single all-encompassing China keyword page that mixes travel features and hard news isn’t desirable either editorially or commercially.

In the main, we aim for one resource per topic: at one point we had three Microsoft keywords, Microsoft (technology), Microsoft and the Media, and Microsoft (business). Technology take all Microsoft stories so it made sense to replace the others with Media+Microsoft and Business+Microsoft. Fewer similar tags mean greater clarity for users and more consistent tagging.

Every tag belongs to a site section, though in some cases a tag could belong to more than one section: Media law (Media or Law?), Social networking (Media or Technology?), Allen Stanford (Sport, Business or World news)?

If a person refuses to settle into one area of activity we sometimes find as neutral a place as possible for their tag (the Culture section is very useful for polymorphous polymaths like Russell Brand). Sometimes tags must be moved: cricket promoter turned Ponzi scheme operator, Allen Stanford, started in Sport and currently resides in World news (Business seemed too specific for such a colourful character). There was a dangerous moment recently when it looked like Wyclef Jean might have to take the long walk from Music to World news.

If a new tag is needed we decide the section of the site the tag should belong to (a process sometimes accompanied by careful negotiation), then we add the tag to any content in the archive significantly about the subject. New tags and their associated pages can be made in minutes (if there is a small content set and a unique word in the name of the subject it can take seconds).

Keeping tags in line with editorial style

If a tag is set up in the wrong section, or doesn’t reflect style, or clashes with our values, then we’ll either delete the tag, merge it into another tag, or remake it completely. We have tools that allow us to move all the content associated with a tag onto another tag, setting up redirects and even replacing links across the site with the new tag.

Our tags should be an index of our editorial preoccupations. We don’t have a tag for every notable person we write about, we make tags as subjects become interesting to us or when someone notices a Titanic hole in the archive. It’s an ongoing process that everyone at the Guardian and Observer is encouraged to contribute to. We should also encourage our audience to contribute by telling us what’s missing from out growing list of keyword tags. 8,500 is, after all, a very small number.

Batch tagging

All this manipulation of tags requires special tools if it isn’t to become tedious, and so within our R2 CMS we have the “batch tag editor”.

The batch tagging tool within the gurdian.co.uk CMS
The batch tagging tool within the gurdian.co.uk CMS Photograph: guardian.co.uk

This is essentially an internal facing advanced search tool, allowing production staff to narrow down their search results to occurrences in particular parts of an article (ie, headline or URL) and to home in on a particular date range.

Once a set of articles is displayed by the batch tag tool, staff are able to carry out a series of tag related operations. We are also able to generate a spreadsheet listing the primary tags on content published in the previous month.

The 'primary tag' report in spreadsheet form
The 'primary tag' report in spreadsheet form Photograph: guardian.co.uk

In the final part of this series, we’ll be looking at how we use tags to improve search and navigation, to place components on the page, and how we are linking them out to the wider web.

Continue reading

Announcing Guardian Hacks SXSW Notes for Release 105