MCPcopy Create free account
hub / github.com/dailydotdev/apps / normalizeRoleLabel

Function normalizeRoleLabel

packages/webapp/lib/buildSwipePrompt.ts:11–12  ·  view source on GitHub ↗
(role: string)

Source from the content-addressed store, hash-verified

9const dedupe = (values: string[]): string[] => Array.from(new Set(values));
10
11const normalizeRoleLabel = (role: string): string =>
12 role.toLowerCase().replace(/\s+engineer$/, '');
13
14export function buildSwipePrompt({
15 personas,

Callers 1

buildSwipePromptFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected