Renamed mergeInputFilter to merge so it matches the input method name