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

Function countOf

graph-ui/src/twin/strings.ts:73–75  ·  view source on GitHub ↗
(count: number, singular: string, plural: string)

Source from the content-addressed store, hash-verified

71
72/** `n thing` or `n things`, so a generated sentence never reads as machine output. */
73export function countOf(count: number, singular: string, plural: string): string {
74 return `${count} ${count === 1 ? singular : plural}`;
75}
76
77// ---------------------------------------------------------------------------
78// Empty states, one per surface. Never a blank panel.

Callers 15

pseudocodeSelectionTitleFunction · 0.90
pseudocodeCappedNoteFunction · 0.90
pseudocodeCoverageFunction · 0.90
pseudocodeLeadUnusedFunction · 0.90
pseudocodeLeadUncheckedFunction · 0.90
pseudocodeLeadBehindFunction · 0.90
insightCallsFunction · 0.90
importsFindingHeadingFunction · 0.90
importsCappedNoteFunction · 0.90
explainerNotStartedFunction · 0.90
explainerUnresolvedNoteFunction · 0.90
explainerWalkBoundFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected