(text: str, phrase: str)
| 128 | |
| 129 | |
| 130 | def contains_phrase(text: str, phrase: str) -> bool: |
| 131 | normalized_phrase = normalize_phrase_text(phrase) |
| 132 | if not normalized_phrase: |
| 133 | return False |
| 134 | return f" {normalized_phrase} " in f" {text} " |
| 135 | |
| 136 | |
| 137 | def tokenize(text: Any) -> List[str]: |
no test coverage detected