Clean nested Krea figure phrasing

This commit is contained in:
2026-06-27 22:00:01 +02:00
parent 42857e938e
commit d546061959
3 changed files with 30 additions and 2 deletions
+6
View File
@@ -546,6 +546,12 @@ def _krea_grammar_issues(name: str, krea_prompt: str) -> list[str]:
flags=re.IGNORECASE,
):
issues.append(f"{name}.krea_prompt: subject_appearance_with_grammar")
if re.search(
r"\b(?:woman|man|person)\s+with\s+a\s+[^.;]{0,120}\bfigure\s+with\b",
krea_prompt,
flags=re.IGNORECASE,
):
issues.append(f"{name}.krea_prompt: nested_figure_with_grammar")
if re.search(r",\s+[A-Z][A-Za-z -]+ camera layout\b", krea_prompt):
issues.append(f"{name}.krea_prompt: comma_joined_camera_layout")
return issues