Suppose you work for Taylor Swift (wouldn’t that be cool!). She is super busy right now recording albums, writing songs, spending time with family and friends, and making TikToks and needs your help. She has all of her songs saved on her computer in folders which are divided up by one album per folder. She has asked you to help her rename her folders so that she still knows what each folder is, but follows proper naming conventions. Use your knowledge from above to help Taylor out.
Following is a list of her current folder names:
Taylor Swift
Taylor Swift (Deluxe)
Live From Clear Channel Stripped 2008
Fearless
Fearless (Platinum Edition)
The Taylor Swift Holiday Collection
Speak Now
Speak Now (Deluxe Edition)
Speak Now World Tour Live
Red
Red (Deluxe Edition)
1989
1989 (Deluxe Edition)
reputation
Lover
folklore
folklore (deluxe edtion)
folklore: the long pond studio sessions (from the Disney+ special) [deluxe edition]
evermore
evermore (deluxe version)
Fearless (Taylor’s Version)
Red (Taylor’s Version)
Midnights
Midnights (3am Edition)
Midnights (The Til Dawn Edition)
Speak Now (Taylor’s Version)
Unreleased Music
Singles
Wow! That’s a lot of albums! Complete the following tasks to make Taylor’s life a little easier for the future.
Please note that the answers to many of these exercises will vary depending on personal preferences. I will give answers depending on how I might approach the problem; they are certainly not the only answer you could have given.
(a)
Before we trying fixing a problem, let’s figure out what the problem is. What do you notice about these folder names? What about them is “incorrect”?
Solution.
The main thing that pops out to me are the spaces. Every multi-word folder name has a space. Secondly, some of the names are very long. Third, there is not much consistency. Some names are capitalized, others aren’t. There are clearly deluxe versions of albums but some say “deluxe”, others say “deluxe version”, and even others say “deluxe edition”.
The three here are the main issues; you may have thought of others. Great! I’m sure they are good observations.
(b)
Ok, we’ve identified a problem. How can we go about deciding what to do about it? You may already have some ideas, but stick with me here. Let’s not just dive in and start removing spaces and shortening folder names. Instead, let’s make a plan.
Identify some naming patterns. Are there any album names that are similar? Can you form any groups of names?
Solution.
There are probably a lot of patterns you could have noticed. I grouped folder names into
Standard albums
Deluxe albums
Live albums
Taylor’s Version albums
Other
(c)
I am going to continue with the groups in the solution to
Task 1.1.b. Feel free to branch off with your own groups or stick with me.
Now that we have groups, we can figure out how to name one of each group, then apply that naming style to all names in the group. Start with the standard albums, such as “Taylor Swift”. How can you change this name to stick with the conventions discussed above?
Solution.Since there aren’t any special modifiers to this album (such as deluxe or live), I say we just keep its name, but write them in kebab-case. Therefore, “Taylor Swift” would become taylor-swift
.
(d)
Apply the naming to scheme to all folders with “regular” album titles.
Solution.
The following names are the modified versions:
taylor-swift
fearless
speak-now
red
1989
reputation
lover
folklore
evermore
midnights
(e)
Continue with the deluxe group. Identify patterns, change one name, then apply those changes to all the names in the group. Use your best judgement, but don’t stress about the “perfect” name.
Solution.
For the deluxe albums, the similarity is the word “deluxe”. I don’t bother with “edition” or “version”, “deluxe” is enough to convey the necessary information. I also would like to abbreviate “deluxe” to “dlx”. You could also choose to keep the full word, but since we can’t ask Taylor what she would prefer, I am sticking with the shorter. “dlx” gets the point across (this is a deluxe album) with 3 less characters. Following are my changes for the deluxe group. There is one outlier: the Fearless Platinum Edition. I am going to retain the “platinum” name since that is its true name.
taylor-swift-dlx
fearless-pltnm
speak-now-dlx
red-dlx
1989-dlx
folklore-dlx
folklore-dsny-dlx
evermore-dlx
midnights-dlx-3am
midnights-dlx-dawn
(f)
Continue with the live group. Identify patterns, change one name, then apply those changes to all the names in the group. Use your best judgement, but don’t stress about the “perfect” name.
Solution.
There are only two in this group, but there could be more in the future. Let’s use “live” to differentiate these folders from the others. I am choosing to not use “lve” or “lv” because I think there are slightly ambiguous (it could mean “love”!).
clear-chnl-live
speak-now-live
(g)
Continue with the Taylor’s Version group. Identify patterns, change one name, then apply those changes to all the names in the group. Use your best judgement, but don’t stress about the “perfect” name.
Solution.
I am going to again use kebab-case and use “tv” to indicate that the album is a Taylor’s Version. This will help cut down on name length.
fearless-tv
red-tv
speak-now-tv
(h)
Continue with the other group. Identify patterns, change one name, then apply those changes to all the names in the group. Use your best judgement, but don’t stress about the “perfect” name.
Solution.
These are mostly up to you. They have no specific pattern, but I will still apply kebab-case and shorten the names.
I think that’s all of them! That may have seemed like a lot of work but I hope it was worthwhile. It should now be much easier for Taylor to navigate her folders and quickly know that album they contain.