def prepare_additional_parameters(additional_properties, language_hints, web_detection_params):
if language_hints is None and web_detection_params is None:<EOL><INDENT>return additional_properties<EOL><DEDENT>if additional_properties is None:<EOL><INDENT>return {}<EOL><DEDENT>merged_additional_parameters = deepcopy(additional_properties)<EOL>if '<STR_LIT>' not in merged_additional_parameters:<EOL><INDENT>merged_additional_parameters['<STR_LIT>'] = {}<EOL><DEDENT>merged_additional_parameters['<STR_LIT>']['<STR_LIT>'] = merged_additional_parameters[<EOL>'<STR_LIT>'<EOL>].get('<STR_LIT>', language_hints)<EOL>merged_additional_parameters['<STR_LIT>']['<STR_LIT>'] = merged_additional_parameters[<EOL>'<STR_LIT>'<EOL>].get('<STR_LIT>', web_detection_params)<EOL>return merged_additional_parameters<EOL>
Creates additional_properties parameter based on language_hints, web_detection_params and
additional_properties parameters specified by the user