diff --git a/klausur-service/backend/cv_ocr_engines.py b/klausur-service/backend/cv_ocr_engines.py index 4a4dd4f..0e96432 100644 --- a/klausur-service/backend/cv_ocr_engines.py +++ b/klausur-service/backend/cv_ocr_engines.py @@ -907,8 +907,9 @@ def _is_grammar_bracket_content(content: str) -> bool: if not content: return False - # Split on / for patterns like (about/of), (on/with) - tokens = [t.strip().lower() for t in content.split('/') if t.strip()] + # Split on / and spaces for patterns like (about/of), (no pl) + tokens = re.split(r'[/\s]+', content.strip().lower()) + tokens = [t for t in tokens if t] if not tokens: return False