# Delimiters, sub-delimiters (!) and flattening/normalising

**URL:** https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931
**Category:** General Discussion
**Created:** [January 17, 2022, 5:08am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931 "2022-01-17T05:08:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![DavidEsp](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davidesp/32/10243_2.png) [@DavidEsp](https://community.mp3tag.de/u/DavidEsp)
#### Post date: [January 17, 2022, 5:08am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/1 "2022-01-17T05:08:59Z")

</div>

For some songs (beyond my normal sphere) that I tagged (over the weekend), _Discogs_ (via Mp3tag's _Search_ feature) returned multiple genre tags, separated by ", " (comma-space). It was first time I experienced this "in the wild" (previously I only expected to make my own tags that way).

I assume that only the comma is delimiter, the space should be regarded as "invisible". So it's not the case that comma-space is a two-character delimiter). Correct so far? (uncertainty over this has been bugging me).

Now the real issue...

Some of the so-delimited tags from Discogs contained what look like _sub_-tag delimiters, such as "/" or "&".

For example "Stage & Screen" (whatever that means here) in...

- Madonna - Express Yourself (1989): [Electronic, Pop, Stage & Screen]

Also "Funk / Soul" in...

- Hall & Oates - Private Eyes: [Rock, Funk / Soul, Pop]

My first reaction was _ **Huh?** _. Apart from the fact that I don't regard this (Hall & Oates) song as Funk _or_ Soul (was someone having a joke?), why didn't they just use "Funk, Soul" ? What they have essentially done is to create a second level, a _sub_ level, of multiple-genre tagging.

So what to do with sub-tags, when encountered? My first reaction would be to _flatten_ the two levels by simply including "/" and "&" along with "," all as equivalent delimiters. Then one could programatically just replace "/" and "&" by ",", when translating as-received tags into (let's call them) _normalised_ tags. Motive: to simplify _rotation rules_ creation in my auto-scheduling radio station playout app (RadioDJ).

Or maybe - based on a sample of one (!) "/" means "not sure", in which case any tags with "/" inside them should be regarded as questionable, unreliable. Partly based on the "sample of one" and partly from implication: not having used the (de facto) standard tag delimiter implies lack of thoughtfulness generally (or am I being harsh?, e.g. such tags could have been "inherited" from earlier days).

Would it be helpful for Mp3tag's Search feature to offer (an option) to normalise (hence split) such sub-level compound tags?

Any thoughts? Anyone "been there" already?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 17, 2022, 7:33am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/2 "2022-01-17T07:33:29Z")

</div>

I am a little puzzled that you have problems with genres and subgenres after I participated in this thread:

> [@User-defined Hierarchical & Multiple Genres - Ideas](https://community.mp3tag.de/t/user-defined-hierarchical-multiple-genres-ideas/55555):
>
> I am tagging music files for use with the (free) RadioDJ playout app (for Windows, which I run inside a Parallels VM on a Macbook). It allows filtering of music by things like Genre. The filtering is semi-programmable in terms of string search/match in SQL, that the RadioDJ app supports, based on an Imported-media library (pointing to media files) in MariaDB (a better version of MySQL). Unsatisfied with the inherited (e.g. ID3v1 + Winamp) default genres (whose history I only today learnt of),…

Also, I think that a discussion about the discogs data quality would be a thing for the discogs forums. MP3tag is here only the messenger.

If you are not satisfied with the retrieved data and you want to adapt it to your needs, there are a number of action types that will help you to replace strings and split fields. I doubt that a ready-made function will be implemented for that as I bet that there are just as many users who want to keep the data as it is.

---

<div class="post-metadata">

### Author: ![DavidEsp](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davidesp/32/10243_2.png) [@DavidEsp](https://community.mp3tag.de/u/DavidEsp)
#### Post date: [January 17, 2022, 11:03am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/3 "2022-01-17T11:03:22Z")

</div>

As clarification...

In my previous post (which you reference) the overall concept was "how can I best design my own tag system?". Whereas in my current question-post, I raise two main points:

1. The simultaneous occurrence of _two levels_ of separator/delimiter and thus of tags in _single results_ from an online music database (here being Discogs, but I wonder if this happens more broadly - anyone know?) and how such cases are best _interpreted_, leading into the question...
2. Could Mp3tag automate that interpretation in some way? (right now or in principle, e.g. as a user option) - say to allow _multiple_ simultaneous separators/delimiters to be defined.

---

<div class="post-metadata">

### Author: ![DavidEsp](https://community.mp3tag.de/user_avatar/community.mp3tag.de/davidesp/32/10243_2.png) [@DavidEsp](https://community.mp3tag.de/u/DavidEsp)
#### Post date: [January 17, 2022, 11:04am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/4 "2022-01-17T11:04:15Z")

</div>

BTW for anyone interested:

- the Madonna Express Yourself example can also be seen directly on Discogs [here](https://www.discogs.com/release/1836947-Madonna-Express-Yourself)
- ...while the Hall & Oates example is [here](https://www.discogs.com/release/742139-Daryl-Hall-John-Oates-Private-Eyes).
- For the latter, the only even vaguely Soul and/or Funk feel track is "I Can't Go For That". But yes, I should raise that on the Discogs forum - I merely mentioned it here in passing.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 17, 2022, 11:23am UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/5 "2022-01-17T11:23:09Z")

</div>

> [@DavidEsp](#):
>
> Could Mp3tag automate that interpretation in some way?

Yes.  
You only have to create a fitting action group.  
The post-processing IMHO is nothing that any automatism should do but that should be tailored according to the individual needs. And for this purpose MP3tag features actions.  
The web source should get the data as accurately as possible, that is what I think.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [January 17, 2022, 12:05pm UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/6 "2022-01-17T12:05:56Z")

</div>

This is precisely why I have not used web sources as the only solution for my tags. Even if most users find them reliable, there is often room for some interpretation for genre. So I allow those sources to guide me, but ultimately it is what i choose to use in my library that matters to me.

Same goes for any other fields where I have found things like song titles or even artists have been mis-typed or even in some cases where tracks are listed out of order.

This is the nature of online data sources. Somebody else had to put it there, and there are no guarantees about it’s accuracy.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 16, 2022, 12:06pm UTC](https://community.mp3tag.de/t/delimiters-sub-delimiters-and-flattening-normalising/55931/7 "2022-02-16T12:06:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
