MCPcopy
hub / github.com/tone-row/flowchart-fun / getFunFlowchartName

Function getFunFlowchartName

app/src/lib/getFunFlowchartName.tsx:8–14  ·  view source on GitHub ↗
(language: keyof typeof languages)

Source from the content-addressed store, hash-verified

6 * with a lot of non-url safe characters, defaults to English.
7 */
8export function getFunFlowchartName(language: keyof typeof languages) {
9 const noun = getNoun(language);
10 const firstLetter = noun[0].toUpperCase();
11 const adjective = getAdjective(language, firstLetter);
12 const digits = getRandomDigits();
13 return `${adjective} ${noun} ${digits}`;
14}
15
16/**
17 * Return 3 random digits. Don't include 0. ex: 123, 999, 321

Callers 2

CloneButtonFunction · 0.90
New2Function · 0.90

Calls 3

getNounFunction · 0.85
getAdjectiveFunction · 0.85
getRandomDigitsFunction · 0.85

Tested by

no test coverage detected