MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / emojiFor

Function emojiFor

web/scripts/gen-catalog.mjs:122–128  ·  view source on GitHub ↗
(name, blurb)

Source from the content-addressed store, hash-verified

120];
121
122function emojiFor(name, blurb) {
123 const hay = `${name} ${blurb}`.toLowerCase();
124 for (const [re, emoji] of EMOJI_RULES) {
125 if (re.test(hay)) return emoji;
126 }
127 return "🐍";
128}
129
130const slugify = (s) =>
131 s

Callers 1

gen-catalog.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected