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

    Class TouchChatProcessor

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Helper method to add extracted strings to the map, handling duplicates

      Parameters

      • extractedMap: Map<string, ExtractedString>

        Map to store extracted strings

      • key: string

        Lowercase key for deduplication

      • originalString: string

        Original string with proper casing

      • vocabLocation: VocabLocation

        Metadata about where the string was found

      Returns void

    • Extract symbol information from a TouchChat file for LLM-based translation. Returns a structured format showing which buttons have symbols and their context.

      This method uses shared translation utilities that work across all AAC formats.

      Parameters

      • filePathOrBuffer: string | Buffer

        Path to TouchChat .ce file or buffer

      Returns ButtonForTranslation[]

      Array of symbol information for LLM processing

    • Apply LLM translations with symbol information. The LLM should provide translations with symbol attachments in the correct positions.

      This method uses shared translation utilities that work across all AAC formats.

      Parameters

      • filePathOrBuffer: string | Buffer

        Path to TouchChat .ce file or buffer

      • llmTranslations: LLMLTranslationResult[]

        Array of LLM translations with symbol info

      • outputPath: string

        Where to save the translated TouchChat file

      • Optionaloptions: { allowPartial?: boolean }

        Translation options (e.g., allowPartial for testing)

      Returns Buffer

      Buffer of the translated TouchChat file

    • Parameters

      • filePathOrBuffer: string | Buffer
      • translations: Map<string, string>
      • outputPath: string

      Returns Buffer