6 ms·
This is neat. I find myself wanting more detail on what works, though. For example, I c/ped your original example and tried "Roberto C. from Brazil." It didn't
by geoelectric 12y ago
This is neat. I find myself wanting more detail on what works, though. For example, I c/ped your original example and tried "Roberto C. from Brazil."
It didn't infer that C. meant to truncate the last name, so everything ended up "John C." No biggie, but trying to figure out what does and doesn't work aside from tokenized string formatting was a bummer. Having the uppercase example led me to believe it could do more types of transformation.
Possible the right answer is hinting of some kind. "Roberto {C.} from Brazil" to hint that the C. should be matched with -something-, and since . naturally means abbreviation would mean "starts with C".
- profinger 12y agoI made a list of restaurants: Input: taco bell 1 mcdonalds 2 wendys 3 bojangles 4 dairy queen 5 Ex: 1. Taco Bell Output: 1. Taco Bell . Mcdonalds 2 . Wendys 3 . Bojangles 4 5. Dairy Queen ? When I take the spaces out of the restaurants I get: New Input: tacobell 1 mcdonalds 2 wendys 3 bojangles 4 dairyqueen 5 Ex: 1. TacoBell New Output: 1. Tacobell 2. Mcdonalds 3. Wendys 4. Bojangles 5. Dairyqueen