Slop means how many word permutations can exist. Thus, "ab" will be different from "ba" because a different number of transpositions is allowed.
a foo b has positions (a, 1), (foo, 2), (b, 3). To match (a, 1), (b, 2), one change is required: (b, 2) => (b, 3)- However, to match (b, 1), (a, 2), you will need (a, 2) => (a, 1) and (b, 1) => (b, 3) for a total of three position movements.
In general, if "ab"~n matches something, then "ba"~(n+2) will also match it.
EDIT: I guess I never gave an answer. I see two options:
- If you need a slop from n, increase it to n + 2
- Manually disable the search as you suggested
I think # 2 is probably better, unless your slop is really big to start with.
source share