{% if 'empty' not in index.keys() %}
Below is the Morphological tagging of the words that you entered

{% endif %}
{% for ind, details in index.items()%} {% if ind != 'empty'%}
{{details[0]}}
{% for tags in details[4]%} {% endfor %} {% for (num,tags) in details[3]%} {% if tags != details[1] %}
{{tags}}
{% elif tags == details[1] %}
{{tags}}
{% endif %} {% endfor %} {% if details[5] ==1 %}
{{details[1]}}
{% endif %}
{% else %}

{{details}}
{% endif %} {% endfor %}