From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Normalizing tags Date: Wed, 03 Sep 2014 09:06:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP4dx-0004Vh-8M for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 03:06:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP4dp-0006IY-Nr for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 03:06:13 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:48181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP4dp-0006I8-Gp for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 03:06:05 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Brett Witty Cc: Org mailing list Brett Witty writes: > Hi, > > Has anyone made a module to normalize tags across your entire setup? Not that I know of. > That is if you have "Blog" and "blog" as tags, then you fix it as one > or the other, or "hint" and "tip" tags being collapsed. > > If not, would people be interested in that? There may not be a lot of demand for it since tags are bounded by colons and can be easily search-replaced. Of course, a function that flags up all the possible duplicates and queries you for the preferred form could be a time-saver. If you're planning to write one: In addition to capitalization ("Blog"/"blog"), it would be useful to look for English singular/plural ("blog"/"blogs") -- but let the user beware ("aid" and "aids" may not be the same tag). People tagging their documents in other languages might find some kind of pattern-matching option helpful. What I would find *really* nice, now that Org supports tag groups, is a function to normalize old documents where entries are tagged with both a group tag and its members. That is, given #+TAGS: { music : classical rock folk } and a heading like * Woody Guthrie :music:American:folk: the function would remove the redundant group tag to yield * Woody Guthrie :American:folk: Yours, Christian