Coming back to this, I was mostly wanting to use json tags so that if a mod added a weapon that didn't fit the keywords- for example, a spear simply called 'Godkiller' or something- it could be added in easily.
Trying to limit players to using a weapon type of their choice (or having their chosen weapon type simply gain a power boost based on config), and I wanted to add items to json tags based on registry name so that it would be compatible with every mod that adds weapons with those keywords, without the need to manually add things to the json tags.
How do I add items to json tags based on the item's registry name? I am attempting to categorize all possible weapons based on name, including modded ones, by tagging them based on keywords in their registry (Sword is "Sword", Pickaxe is "Pick", Axe is "Axe" but excludes "Pick", etc.)