MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / normalizeQueryTerms

Method normalizeQueryTerms

src/core/search.ts:348–353  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

346 }
347
348 private normalizeQueryTerms(query: string): string[] {
349 return query
350 .toLowerCase()
351 .split(/[^a-z0-9_]+/)
352 .filter((term) => term.length > 2 && !QUERY_STOP_WORDS.has(term));
353 }
354
355 /**
356 * Classify query intent based on heuristic patterns

Callers 2

buildQueryVariantsMethod · 0.95
queryPathTokenOverlapMethod · 0.95

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected