1// Native horizontal pose is a property of a rendered glyph. Keep this small:2// other emoji are directional only when a mod declares their native face.3export const BUILTIN_FACES = Object.freeze({4 MIAU: Object.freeze({ glyph: '🐈', direction: 'left' }),5 CAT: Object.freeze({ glyph: '🐈', direction: 'left' }),6});78export function nativeHorizontalFacing(noun, glyph, paletteEntry = null) {9 const declared = paletteEntry && typeof paletteEntry === 'object' ? paletteEntry.faces : null;10 if (declared === 'left' || declared === 'right') return declared;11 const builtIn = BUILTIN_FACES[String(noun || '').toUpperCase()];12 return builtIn?.glyph === glyph ? builtIn.direction : null;13}