MCPcopy
hub / github.com/muan/emojilib / generateFullIdentityKeywords

Function generateFullIdentityKeywords

scripts/augment-en.js:73–91  ·  view source on GitHub ↗
(inEmojilib, platforms)

Source from the content-addressed store, hash-verified

71 }
72
73 function generateFullIdentityKeywords(inEmojilib, platforms) {
74 const inEmojipedia = getKeywordsForEmojipediaEntry(platforms.emojipedia).map(toNormalizedText)
75 const inFluemoji = platforms.fluemoji && [platforms.fluemoji.cldr, platforms.fluemoji.tts].map(toNormalizedText)
76 const inGemoji = platforms.gemoji?.names
77 const inTwemoji = platforms.twemoji && [platforms.twemoji.description].map(toNormalizedText)
78 const inAny = [inFluemoji, inGemoji, inTwemoji, inEmojipedia]
79 .flat()
80 .map(text => text && toNormalizedText(text))
81 .filter(x => !!x)
82
83 return {
84 inAny,
85 inEmojilib,
86 inEmojipedia,
87 inFluemoji,
88 inGemoji,
89 inTwemoji
90 }
91 }
92
93 function generatePartialIdentityKeywords(keywordsEmojilib, fullIdentity) {
94 const inAny = toPartialKeywords(fullIdentity.inAny)

Callers 1

generateAllEmojiKeywordsFunction · 0.85

Calls 2

toNormalizedTextFunction · 0.85

Tested by

no test coverage detected