(^".")(STAIL):=(".")(%02); (Add a period before the end of the sentence if there is not a period yet) seems to also delete the last word. Use (^".",%a)(STAIL,%b):=(%a)(".")(%b); instead?