Naturalize composition frame wording

This commit is contained in:
2026-06-27 21:45:21 +02:00
parent e9bd9c45ca
commit a4b4dae8cf
7 changed files with 50 additions and 7 deletions
+4
View File
@@ -230,6 +230,10 @@ def _composition_phrase(
detail_density: str = "balanced",
) -> str:
composition = _clean(composition)
if not composition:
return ""
composition = re.sub(r"\s+composition$", "", composition, flags=re.IGNORECASE)
composition = re.sub(r"\bcomposition\b", "frame", composition, flags=re.IGNORECASE).strip(" ,")
if not composition:
return ""
action_lower = _clean(action).lower()