过滤词的单词替换

https://meta.discourse.org/t/inappropriate-obscenity-profanity-language-filter/7993

In regards to this, I’m aware that I’m able to ban words through the Admin settings.

My inquiry is, would the following be possible:

Say I want to ban the word “book” from my forum – it is offensive, and not needed [hypothetically].

So, if a user posts “Just bought a new book, love it.”

Discourse spits out: “Just bought a new orange, love it.”

Where “orange” would be randomized based on fruits or something, out of the set say, [orange, blueberry, strawberry, kiwi, banana].

3 个赞

I do want to eventually get to replacement for Watched Words and there are several topics on this already.

7 个赞

在 Dgraph,我们也在寻找类似的解决方案。我们的用户以多种方式书写 Dgraph(如 dGraph、DGraph 等),我们希望自动将所有这些写法替换为正确的形式。

3 个赞