You could probably do something like
AVOID (thing.*){5}
to have a limit of four occurrences of "thing" (i.e. disallow five occurrences). I'm not sure how efficient that would be (it's possible the program will take too many tries and give up).
I tried the following:
LETTER = a | b | c | d | e
WORD = LETTER LETTER LETTER LETTER LETTER
AVOID (a.*){2}
AVOID (b.*){2}
AVOID (c.*){2}
AVOID (d.*){2}
AVOID (e.*){2}
and got:
dcbea
dabec
aecdb
ecdba
cbdea
You could probably do something like AVOID (thing.*){5} to have a limit of four occurrences of "thing" (i.e. disallow five occurrences). I'm not sure how efficient that would be (it's possible the program will take too many tries and give up). I tried the following: LETTER = a | b | c | d | e WORD = LETTER LETTER LETTER LETTER LETTER AVOID (a.*){2} AVOID (b.*){2} AVOID (c.*){2} AVOID (d.*){2} AVOID (e.*){2} and got: dcbea dabec aecdb ecdba cbdea