obscenity icon indicating copy to clipboard operation
obscenity copied to clipboard

Request: Symbols that can represent multiple letters

Open rion18 opened this issue 6 months ago • 4 comments

Description

I've tried with a few combinations of EnglishTransformers, but I haven't been able to correctly censor words like sh*t or f*ck. In both cases, words should be censored, however, in the first word * represents an i and * represents a u. Is there a way to create a new transformer for multiple letters/regex?

Solution

I do not know how this can be implemented. Looking at the L33tspeak transformer, I can see there's a map per character:

	['a', '@4'],
	['c', '('],
	['e', '3'],
	['i', '1|'],
	['o', '0'],
	['s', '$'],

However, I don't know how it would work for multiple characters where for example, we could have

	['*', 'any_letter_or_vowel_etc.'],

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct.

rion18 avatar Aug 05 '24 23:08 rion18