tags: an autocomplete tool
Thu Feb 15, 2007 at 04:23:58 PM PDT
Ok, it's been a while since I've talked about tags. Yes, I messed around with a tag tool for a while, and that went nowhere. But it did point me in the right direction.
I got a tag dump from ct (thanks, ct), and processed that into a db which is queried by an Ajax autocomplete routine. In plain English, this means I've made a page where you can start typing in a desired tag, and after you've entered three characters the database of all tags is queried, and you're given a list of matches from which to choose. You can then select from those matches. So if you can't ever remember how Condi spells here first name, this'll do it for you. Sorta.
[more...]
Once you've picked the right tag, you can continue to add tags -- the autocomplete sticks in a comma and then works on the next entry. Right now you can then select this string and paste it into a diary tag entry box, but eventually it should make it into the regular diary entry page. Remember, while right now it's a bit more than a proof of concept, it's still not really ready for prime time.
You'll notice that some entries are bold, and some are not. The idea is that the bold entries are the "correct" ones to use, but I'm not real happy with my algorithm for choosing "valid' tags at the moment, so take these with a grain of salt. (Briefly, I've chosen a set of "tag librarians" (those who have contributed most to the dKosopedia tag project pages) and set any tag associated with their user id (50017 4242 49281 33535 17760 71723 4703 52910 38103 3541 93685 15940) to be a valid tag. It's not perfect, but it's a start. My next big task is to provide a form which tag librarians can use to manage the tag db.)
Anyway, please play with it and let me know what you think. It's right here.
(Yes, I've attached the "meta" tag to this diary, but don't get all excited. This isn't the fun type of meta, wherein we get to simultaneously wank, navel gaze, and insult friend and foe alike, just for the hell of it. No, this is the boring type of meta. This actually has to do with the mechanics of the site. Sorry.)
Permalink | 22 comments