All Roads Lead to “Philosophy”

There was an idea floating around that continuously following the first link of any Wikipedia article will eventually lead to “Philosophy.” 1 This sounded like a reasonable assertion, one that makes a certain amount of sense in retrospect: any description of something will typically use more general terms. Following that idea will eventually lead… somewhere.

It also sounded like an idea that would be easily examinable with basic client-side scripting tools, using the Wikipedia API and a good graphing package. I put something together here based on JQuery and the JavaScript InfoViz Toolkit. It makes use of the HTML5 <canvas> element, so support for Internet Explorer is provided by the Google excanvas package.

I still have a lot of tweaking to do but the results so far are pretty nice.

Multiple titles can be added using a comma-separated list. JSONP requests are made to Wikipedia asynchronously, so more terms can be added while it is accumulating results.

There are some circumstances where a loop is detected up the chain. This is relatively rare. If it finds that it moves to the next link in the chain. One good example is “Telecommunication”.

1 See the tooltip by hovering over the cartoon at xkcd which is said to be the source of this observation. Though this posting on reddit.com appears to predate that by about a month.