{% if data == {} %}
I have no words for this.
{% else %}
attachments
{% for word_type, ranking in data.items() %}
{{ word_type }}
{% for rank, words in ranking.items() %}
{% for word in words.keys() %}
{{ word }}{{ words[word]['count'] }}
{% endfor %}
{% endfor %}
{% endfor %}
{% endif %}