/** * Card words stay plain: no outside company, product or person names in a skill's title, maker, summary or pick note. * Write "a cloud company" or "an AI lab", not the name. Our own names (Skillfarm and the other Project ATOM names) are fine. * Words that are also ordinary English ("Word", "Render", "Linear", "X") are matched only when capitalised mid-sentence, * so they are left out of this list; reviewers catch those. */ const NAMES = [ 'Anthropic', 'Claude', 'OpenAI', 'Codex', 'ChatGPT', 'GPT', 'Gemini', 'Google', 'Microsoft', 'Apple', 'macOS', 'iOS', 'iPhone', 'iPad', 'Android', 'Cloudflare', 'Vercel', 'GitHub', 'GitLab', 'Stripe', 'Supabase', 'Figma', 'Slack', 'YouTube', 'Reddit', 'Twitter', 'LinkedIn', 'Upwork', 'Suno', 'Bitwarden', 'ngrok', 'xAI', 'Grok', 'Sentry', 'Netlify', 'Runpod', 'Hugging Face', 'HashiCorp', 'Terraform', 'PlanetScale', 'DuckDB', 'Obsidian', 'Expo', 'React', 'Playwright', 'Lighthouse', 'Remotion', 'HeyGen', 'Blender', 'n8n', 'Upstash', 'Chrome', 'Excel', 'PowerPoint', 'Jupyter', 'Polymarket', 'Hacker News', 'Postgres', 'MySQL', 'SwiftUI', 'Xcode', 'Tailwind', 'ComfyUI', 'Docker', 'Discord', 'Meta', 'Amazon', 'AWS', 'Azure', ]; const RX = new RegExp(`\\b(${NAMES.map((n) => n.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('|')})\\b`, 'i'); /** The first outside name found in any of the texts, or null when they are all plain. */ export function brandIn(...texts: (string | null | undefined)[]): string | null { for (const t of texts) { const m = t ? RX.exec(t) : null; if (m) return m[1]; } return null; }