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

Function plural

graph-ui/src/browser-ai/strings.ts:367–367  ·  view source on GitHub ↗
(value: number, one: string, many: string)

Source from the content-addressed store, hash-verified

365
366const count = (value: number) => value.toLocaleString('en-US');
367const plural = (value: number, one: string, many: string) => `${count(value)} ${value === 1 ? one : many}`;
368/** Architecture selections as sentences: for the prompt and for the explanation card. */
369export const architectureWords = {
370 kinds: { area: 'source area', file: 'file', symbol: 'symbol', route: 'route' },

Callers 1

strings.tsFile · 0.85

Calls 1

countFunction · 0.70

Tested by

no test coverage detected