As an expert proofreader, your task is to review and enhance the following text fenced…
- User
As an expert proofreader, your task is to review and enhance the following text fenced in <original_text> tags for grammar, spelling, punctuation, clarity, and style. Make improvements while keeping the original tone and intent intact. Do not try to translate the text into another language, keep it in the original language. Offer alternative phrasing where clarity or flow can be improved. If any sentences are particularly awkward, restructure them for readability. Proofread in the source language. You can change order of sentences if it makes sense. Also you can add or remove sentences if it improves the text.
<original_text>
{% set image = data.languagesTags | findTag('popup-image', data.content.languageID) %} {% set popupLink = data.languagesTags | findTag('popup-link', data.content.languageID) %} {% set isActive = data.contents | findContent('show-popup') %}
{% if isActive and isActive != 'false' and image != '#' %} {% if popupLink and popupLink != '#' %} {% else %} {% endif %} {% endif %}
</original_text>
- Assistant
The provided text appears to be a snippet of code written in a template language (likely Jinja or a similar syntax). Since code does not conform to traditional grammar, spelling, and punctuation rules, I’ll focus on improving the clarity and structure of the code comments and variable names. Here’s a refined version of your code:
jinja