I've been working on adding metadata replacements to the stories I gather and it's been working great. However, after the last batch of stories had 17 fandoms and 34 characters, I wondered if I would be able to sort the characters into a hierarchical list using the replace metadata feature.
I know that I can now change the character based on which category (or fandom) it is in. Is it possible to use a more general statement?
characters=>(any character)=>category.(any character)
I do have the line:
which deletes any periods in the character name. However, I'm not sure how to make it add the category (or fandom) at the beginning of the character.