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

Method plural

src/mcp/tools.ts:5748–5748  ·  view source on GitHub ↗
(n: number, word: string)

Source from the content-addressed store, hash-verified

5746 // Reserved at its worst case: the gather's symbol and file counts bound the
5747 // shown ones from above.
5748 const plural = (n: number, word: string) => `${n} ${word}${n === 1 ? '' : 's'}`;
5749 const summaryReserve = `Found ${plural(subgraph.nodes.size, 'symbol')} across ${plural(fileGroups.size, 'file')}.`.length
5750 + (pinnedFiles.length > 0 ? ` ${plural(pinnedFiles.length, 'file')} pinned from the query.`.length : 0)
5751 + (unresolvedPathSpans.length > 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected