def make_selection(text, multiline_bool=None, selection=None, text_processing=False):
	tp_dict = tp_dh.get_pattern_dict(update=False)

	if not selection: # Get settings from settings.xml
		selection = sh.get_mode()
	if not multiline_bool:	
		multiline_bool = sh.get_multiline_bool()	
	if text_processing:
		text = tp_obj(text, 1, pattern_dict=tp_dict)

	mode = options_dict.get(selection)

	return mode(text, multiline_bool, pattern_dict=tp_dict)
	def mode_update(self, *args):
		self.selected_mode = self.options_var.get()
		sh.set_mode(self.selected_mode)
		mode = sh.get_mode()