def getDict(self, encoderName, flattenedChosenValues):
encoder = dict(fieldname=self.fieldName,<EOL>name=self.name)<EOL>for encoderArg, value in self.kwArgs.items():<EOL><INDENT>if isinstance(value, PermuteVariable):<EOL><INDENT>value = flattenedChosenValues["<STR_LIT>" % (encoderName, encoderArg)]<EOL><DEDENT>encoder[encoderArg] = value<EOL><DEDENT>if '<STR_LIT:.>' in self.encoderClass:<EOL><INDENT>(encoder['<STR_LIT:type>'], argName) = self.encoderClass.split('<STR_LIT:.>')<EOL>argValue = (encoder['<STR_LIT:w>'], encoder['<STR_LIT>'])<EOL>encoder[argName] = argValue<EOL>encoder.pop('<STR_LIT:w>')<EOL>encoder.pop('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>encoder['<STR_LIT:type>'] = self.encoderClass<EOL><DEDENT>return encoder<EOL>
Return a dict that can be used to construct this encoder. This dict
        can be passed directly to the addMultipleEncoders() method of the
        multi encoder.

        Parameters:
        ----------------------------------------------------------------------
        encoderName:            name of the encoder
        flattenedChosenValues:  dict of the flattened permutation variables. Any
                                  variables within this dict whose key starts
                                  with encoderName will be substituted for
                                  encoder constructor args which are being
                                  permuted over.