3 ms·
I think you mean that TCO is dangerous. Besides, this is probably more of an implementation problem. Do you really want to be applying a filter like this multip
by rtpg 13y ago
I think you mean that TCO is dangerous. Besides, this is probably more of an implementation problem. Do you really want to be applying a filter like this multiple times?
If I had to implement this, I would just imagine that just taking your mapping, and for each key,value , do a title.replace(key,value). I would be a "good enough" solution , and in the worst case you still have human editors on HN.
- michaelt 13y agoIf you have one wordfilter to map "!"->"" and another to replace "cunt"->"asdf" and you got the input "cu!nt" what should the output be?
- rtpg 13y agogood point. I understood this to be more of a counter to non-malicious intent than otherwise.
- cousin_it 13y agoInterestingly, distinguishing between "non-loopy" and "potentially loopy" sets of rewrite rules seems to be equivalent to the halting problem :-( The key phrase would be "tag systems".
- mst 13y agoI'm not sure I particularly care so long as it produces some output before the heat death of the universe.