MCPcopy
hub / github.com/colbymchenry/codegraph / hasStructuralKeyword

Function hasStructuralKeyword

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

Source from the content-addressed store, hash-verified

263 * a candidate the hook verifies against the graph first; see {@link extractCodeTokens}.)
264 */
265export function hasStructuralKeyword(prompt: string): boolean {
266 return !!prompt && (STRUCTURAL_EN.test(prompt) || STRUCTURAL_CJK.test(prompt));
267}
268
269/**
270 * 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