MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / hasStructuralKeyword

Function hasStructuralKeyword

src/directory.ts:751–756  ·  view source on GitHub ↗
(prompt: string)

Source from the content-addressed store, hash-verified

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

Callers 3

mainFunction · 0.90
isStructuralPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected