eeuuah comments on Open Thread, Jun. 1 - Jun. 7, 2015 - Less Wrong Discussion
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (203)
I'm playing around with writing a Chrome extension that identifies countries of the world in the browser and marks them up with expandable, at-a-glance summary data for that country, like GDP per capita, composite index scores (HDI, MPI, etc.), literacy rate, principal exports and so on. I find myself regularly looking this up on Wikipedia anyway, and figured I'd remove the inconvenience of doing so.
This example probably isn't that useful for everyone, but it got me wondering what other sets of things could be marked up in the browser in this way. Another example that occurred to me was legislature voting records, where a similar plugin would provide easy visibility of how elected representatives voted on legislation. Again, not useful for everyone, but I could imagine political junkies getting some use out of it.
Such a set of mark-uppable entities would have to be either identifiable by format (like an ISBN) where the data could be fetched from a remote source, or a finite list of a few hundred items (like countries), where the data could be stored locally. What kinds of things would you like this sort of visibility on in the browser? Is there a set of entities you find yourself tiresomely looking up data for over and over again?
(Partly inspired by the Dictionary of Numbers)
This kind of thing sounds very useful especially if easily extensible. How are you planning to make the ui for this work? I think it would be fairly challenging to make it both easily available without being obnoxiously overpresent and am interested to hear your approach to the problem.
For the country data example, every instance of a country name is prepended with a small icon (for development purposes this is currently an obnoxious red X, but I plan to replace this with a neutral-coloured globe or something), and the name itself is wrapped in some custom style (currently boldface, but could be anything). Clicking on the icon places a container with the relevant data on the page, offset to the same location as the icon, (giving the illusion of the icon "expanding" to show the data). Clicking on the icon again, or away from the container, removes it.
In terms of extensibility, all the data is in a local JSON file, and the format of the data container is an HTML template that might eventually live in the same file. I'm also planning on having local image assets (maps and flags). This could all be swapped out for anything, or even obtained from a web service.
Yeah that seems like it would work pretty well for the case of country data. Let us know how development goes!