@bdelab/jscat - v5.3.2
    Preparing search index...

    Function prepareClowderCorpus

    • Converts an array of Stimulus objects into an array of MultiZetaStimulus objects. The user specifies cat names and a delimiter to identify and group parameters.

      Parameters

      • items: Stimulus[]

        An array of stimuli, where each stimulus contains parameters for different CAT instances.

      • catNames: string[]

        A list of CAT names to be mapped to their corresponding zeta values.

      • delimiter: string

        A delimiter used to separate CAT instance names from the parameter keys in the stimulus object.

      • itemParameterFormat: "symbolic" | "semantic" = 'symbolic'

        Defines the format to convert zeta values ('symbolic' or 'semantic').

      Returns MultiZetaStimulus[]

      • An array of MultiZetaStimulus objects, each containing the cleaned stimulus and associated zeta values for each CAT instance.

      This function iterates through each stimulus, extracts parameters relevant to the specified CAT instances, converts them to the desired format, and returns a cleaned structure of stimuli with the associated zeta values.