(text: Any)
| 225 | |
| 226 | |
| 227 | def split_sentences(text: Any) -> List[str]: |
| 228 | sentences = [part.strip() for part in SENTENCE_SPLIT_RE.split(str(text or "")) if part.strip()] |
| 229 | if sentences: |
| 230 | return sentences |
| 231 | text_value = str(text or "").strip() |
| 232 | return [text_value] if text_value else [] |
| 233 | |
| 234 | |
| 235 | def sentence_facets(sentence: str) -> List[str]: |
no outgoing calls
no test coverage detected