(prompt: string)
| 748 | * still fire through the language-agnostic code-token path. |
| 749 | */ |
| 750 | export function hasStructuralKeyword(prompt: string): boolean { |
| 751 | return ( |
| 752 | !!prompt && |
| 753 | (STRUCTURAL_WORDS_RE.test(prompt) || STRUCTURAL_STEMS_RE.test(prompt) || STRUCTURAL_UNSEGMENTED.test(prompt)) |
| 754 | ); |
| 755 | } |
| 756 | |
| 757 | /** |
| 758 | * Identifier-shaped tokens in `prompt` — camelCase / PascalCase-with-inner-cap, |
no outgoing calls
no test coverage detected