Skip to main content

View Diary: Today's Tags (11 comments)

Comment Preferences

  •  Check tags vs. dKosopedia redirects. (0+ / 0-)

    That would be a good automated way of finding and replacing typos and synonymous tags:  If the dKosopedia entry for a tag redirects to another entry, it's probably safe to replace the tag with the title of the redirected entry.

    This could be done by with an external tool, or incorporated into the site's tagging mechanism. This method would automatically resolve the issue of which synonym would be the 'canonical' one. And it would allow anyone to contribute to tag cleanup without the laborious manual search-and-replace work:  If you see a tag with a typo, or some other tag that should be merged, just add a redirect entry to the dKosopedia and that tag can be automatically found and changed whenever it reappears in the future.

    <div style="color: gray; font-size: 80%">(-7.88, -8.97)</div>

    by Abou Ben Adhem on Mon Oct 02, 2006 at 08:24:25 PM PDT

    [ Parent ]

    •  If anyone's interested in doing this (0+ / 0-)

      Here's the SQL for grabbing a redirect destination from dKosopedia's MediaWiki DB:

      SELECT pl.pl_title FROM page p JOIN pagelinks pl ON p.page_id = pl.pl_from WHERE p.page_title = tag and p.page_is_redirect = 1

      <div style="color: gray; font-size: 80%">(-7.88, -8.97)</div>

      by Abou Ben Adhem on Mon Oct 02, 2006 at 10:00:38 PM PDT

      [ Parent ]

Subscribe or Donate to support Daily Kos.

  • Recommended (125)
  • Community (60)
  • Media (31)
  • Elections (31)
  • Trans-Pacific Partnership (30)
  • 2016 (29)
  • Environment (27)
  • Law (27)
  • Barack Obama (24)
  • Culture (23)
  • Civil Rights (23)
  • Hillary Clinton (23)
  • Republicans (22)
  • Science (21)
  • Climate Change (21)
  • Labor (19)
  • Economy (19)
  • Jeb Bush (18)
  • Josh Duggar (18)
  • Bernie Sanders (17)
  • Click here for the mobile view of the site