Returns a function that splits text into a list of text according to a transition from one kind of character to another.