I have a "part of speech" field on my Anki cards that I use to differentiate between terms that have near-identical meaning but different grammatical function, such as 大きい (i-adjective) vs. 大型 (noun or no-adjective). However, if you use JMdict or Jitendex with Yomitan as your dictionary, many unnecessary tags get mixed in. Take for example the word "切り離す." The tags in JMdict for this term are: ⭐, news13k, spec, v5s, vt. I only really need to know it's a transitive verb (vt), and maybe that it's a godan verb (v5s). The rest of the tags just take up space and don't tell me anything. The easiest and most practical way to remove them is to just edit the front/back of your Anki cards themselves, using a script to hide those terms. Here's a script I found that will accomplish this, just paste where your part of speech field would be and change the <field name> to the one you use on the front and back.
<div id="classField">{{
<FIELD NAME>}}</div>
<script>
var classField = document.getElementById("classField");
var text = classField.textContent;
// Remove any unwanted tags
text = text.replace('⭐, ', '').replace('gai, ', '').replace(', uk', '').replace('v1, ', '').replace('news1k, ', '').replace('news2k, ', '').replace('news3k, ', '').replace('news4k, ', '').replace('news5k, ', '').replace('news6k, ', '').replace('news7k, ', '').replace('news8k, ', '').replace('news9k, ', '').replace('news10k, ', '').replace('news11k, ', '').replace('news12k, ', '').replace('news13k, ', '').replace('news14k, ', '').replace('news15k, ', '').replace('news16k, ', '').replace('news17k, ', '').replace('news18k, ', '').replace('news19k, ', '').replace('news20k, ', '').replace('news21k, ', '').replace('news22k, ', '').replace('news23k, ', '').replace('news24k, ', '').replace('ichi, ', '').replace('[tag you want to hide]', '');
classField.textContent = text;
</script>
If you want to add more tags to hide, just paste in this code before the semicolon and replace [tag] with whatever you want to hide:
.replace('[tag]', '')
Here's an example of it working:
by fujiokq