Remove one resolved clause from the text so generic keywords do not double-fire.
(text: str, clause: str)
| 1556 | |
| 1557 | |
| 1558 | def _remove_clause_from_text(text: str, clause: str) -> str: |
| 1559 | """Remove one resolved clause from the text so generic keywords do not double-fire.""" |
| 1560 | if not text or not clause: |
| 1561 | return text |
| 1562 | pattern = re.compile(re.escape(clause), re.IGNORECASE) |
| 1563 | return pattern.sub(" ", text, count=1) |
| 1564 | |
| 1565 | |
| 1566 | def _derive_methodology_preferences(text_lower: str) -> Dict[str, Any]: |
no outgoing calls
no test coverage detected