Guard generated formatter metadata flow

This commit is contained in:
2026-06-27 12:44:21 +02:00
parent 8eb3f6d394
commit 2a5e565ce7
2 changed files with 53 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ def split_tag_text(text: Any) -> list[str]:
text = clean(text)
if not text:
return []
text = input_policy.strip_prompt_field_labels(text, field_labels=PROMPT_FIELD_LABELS)
text = re.sub(r"\bWoman [A-Z]'s\b", "woman's", text)
text = re.sub(r"\bMan [A-Z]'s\b", "man's", text)
text = re.sub(r"\bWoman [A-Z]\b", "woman", text)