Dictionary lookup
Hat checkoutEnabledWord definitions during hat comprehension remediation. Curated glossary entries take priority; otherwise the Free Dictionary API supplies definitions and etymology. No API key required for MVP.
Glossary-only skips the external API even when enabled.
Override via DICTIONARY_API_URL env var when unset here.
When enabled, remediation sentences are checked for correct organizational context using OpenAI. Requires an API key below or OPENAI_API_KEY in the environment.
Default gpt-4o-mini — cheap and fast.
Lookup order: hat glossary → Free Dictionary API → contextual fallback in the remediation UI.