SansBullshitSans icon indicating copy to clipboard operation
SansBullshitSans copied to clipboard

substring protection

Open lorenzogatti opened this issue 10 years ago • 3 comments

Bad words occurring as substrings of innocent words are replaced anyway. Test case: accurately -> ac_bullshit_ly.

lorenzogatti avatar Feb 27 '15 22:02 lorenzogatti

Wouldn't this be fixable by adding ",space" at the end of all ligature matches?

floe avatar Mar 04 '15 12:03 floe

@floe Not fully, as words could with all kinds of punctuation marks as well.

I currently don't have a solution for this, as this is how ligatures work: if this sequence of characters occurs, replace it — no matter what else surrounds them. Maybe contextual ligatures could offer a solution here.

RoelN avatar Mar 04 '15 13:03 RoelN

'helping' --> 'hel~b.s.~'

sleep-walker avatar Jun 28 '15 08:06 sleep-walker