You know what this reminds me of? Those trained neural-net things which, however many training examples you give it, always seem to find some way to “cheat” and not do what you want while still obeying all your training data correctly. Something like this: Suppose we have a table of strings of digits, some including spaces, and we’d like to remove the spaces. From 123 456 234567 345 678 to 123456 234567 345678 Now, w…
For your example, it could list:
“Remove interior spaces from each item”
or it could say: “Remove the middle character from any 7-character strings to make them 6 characters in length”
You would be able to do something with that.