Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

substring protection #13

Open
lorenzogatti opened this issue Feb 27, 2015 · 3 comments
Open

substring protection #13

lorenzogatti opened this issue Feb 27, 2015 · 3 comments

Comments

@lorenzogatti
Copy link

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

@floe
Copy link

floe commented Mar 4, 2015

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

@RoelN
Copy link
Owner

RoelN commented Mar 4, 2015

@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.

@sleep-walker
Copy link

'helping' --> 'helb.s.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants