MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / subjectScore

Function subjectScore

graph-ui/src/compiler/subject-resolver.ts:160–163  ·  view source on GitHub ↗
(hit: SymbolSearchHit, name: string)

Source from the content-addressed store, hash-verified

158 * dropped before anything is ordered.
159 */
160export function subjectScore(hit: SymbolSearchHit, name: string): number {
161 const exact = subjectSpecificity(hit, name, true);
162 return exact > 0 ? SUBJECT_SPELLING_BONUS + exact : subjectSpecificity(hit, name, false);
163}
164
165/**
166 * Order candidates so two readings of one index agree.

Callers 3

orderCandidatesFunction · 0.85
resolveSubjectFunction · 0.85

Calls 1

subjectSpecificityFunction · 0.85

Tested by

no test coverage detected