Is there a way to output the machine name of a taxonomy term? I've been to figure out how I can output the machine-name of a taxonomy term on my entity field to my twig template. using .label prints out the name of the taxonomy term. .id get a numerical value, was actually hoping to get the machine term instead. Using kint I can't seem to find it

{% for themes in node.field_themes %}

        &lt;span&gt;{{ themes.entity.id }}&lt;/span&gt;
{% endfor %}
I see, the output I'm looking for somewhat like the key value of a
  list field. For example Taxonomy term it becomes taxonomy-term


As discussed the correct way is 

{{ themes.entity.label|lower|replace({' ':'-'}) }}


It's suitable for other entity types as well