@willwade/aac-processors
    Preparing search index...

    Function normalizeButtonForTranslation

    Translation Namespace

    LLM-based translation utilities for AAC files with symbol preservation.

    These utilities are used by processor classes. See individual processors for:

    • extractSymbolsForLLM() - method on GridsetProcessor, ObfProcessor, TouchChatProcessor, SnapProcessor
    • processLLMTranslations() - method on GridsetProcessor, ObfProcessor, TouchChatProcessor, SnapProcessor

    Or use the lower-level utilities directly:

    • Extract symbols from a button for LLM-based translation.

      This is a format-agnostic helper that processors can use to normalize their button data into a common format for LLM processing.

      Parameters

      • buttonId: string

        Unique identifier for the button

      • label: string

        Button label text

      • message: string

        Button message/speak text

      • symbols: SymbolInfo[]

        Array of symbols from the button

      • Optionalcontext: { pageId?: string; pageName?: string }

        Optional page context

      • Optionalgrammar: any

      Returns ButtonForTranslation

      Normalized button data for translation