ProjectLighthouse icon indicating copy to clipboard operation
ProjectLighthouse copied to clipboard

Custom Word Filter

Open m88youngling opened this issue 3 years ago • 7 comments

@Slendy mentioned to me that a word filter can be enabled with Lighthouse but all the words are hardcoded. It'd be very handy to have a customizable word filter. You could add words to a comma separated list either in the lighthouse.yml config or you could customize the word filter via the admin panel.

m88youngling avatar Oct 25 '22 18:10 m88youngling

currently it's here

Zaprit avatar Oct 25 '22 18:10 Zaprit

currently it's here

Can instance owners easily edit the list on their server, or will it auto update when they update to latest changes from the repo? If it's easy enough to just nano edit it, I think I will close this issue and we can talk about website enhancement later

m88youngling avatar Oct 25 '22 18:10 m88youngling

it will likely be clobbered when the server gets updated

Zaprit avatar Oct 25 '22 18:10 Zaprit

Crap 💀 how do we deal with that?

m88youngling avatar Oct 25 '22 18:10 m88youngling

give me an hour

I fix 🙂

Zaprit avatar Oct 25 '22 18:10 Zaprit

I have the 'furry' mode activated on Beacon and it doesn't seem to moderate level titles

m88youngling avatar Oct 25 '22 20:10 m88youngling

Seems that comments don't get filtered either, I bet that only in-game text chat and magic mouths get filtered at the moment

m88youngling avatar Oct 25 '22 20:10 m88youngling

To avoid language collisions, I suggest using the selected/preferred language as well to select a specific group of word filter. For example, using fantasy made up languages lol: Frunkish: Ung ba moda (Fu*k you man) Mongtsh: Ung ta te moda (How is your day?). Right now looking at the report at #bug-blasters from October 29th, I assume right now it goes like this.

Ung ba moda - gets censored because it means something bad Ung ta te moda - gets censored anyways despite not being bad.

With the solution I suggested, It goes like this:

User with Frunkish set as preferred language:

Ung ba moda (gets censored) Ung ta te moda (gets censored)

User with Mongtsh set as preferred language:

Ung ba moda (does not get censored) Ung ta te moda (does not get censored)

This solution to a problem does bring both good and potential bad. The goods: Brings more freedom to foreign-speaking users and community, Does not censor any word in foreign languages. The bad, there's only one: If the user does abuse the solution by speaking English despite being on foreign language, Only the host/other players can report it via good grief, This could be a violation for circumventing the word filter.

It can be considered as a seperate issue but I thought would be best here for now.

Ezoiar avatar Oct 29 '22 16:10 Ezoiar

give me an hour

I fix 🙂

my ability to judge complexity is not good

Zaprit avatar Nov 29 '22 01:11 Zaprit

💀

m88youngling avatar Nov 29 '22 01:11 m88youngling

You could try adding a .gitattributes file with a merge strategy that ignores the non-local word filter file. I'll get a PR up for this in a sec so you can see what I mean

Cryptofowl avatar Dec 03 '22 16:12 Cryptofowl

Whoops, no write access (duh) but you can just save a .gitattributes file in the root directory with chatCensoredList.txt merge=ours

That should prevent merged updates from overwriting custom word filter lists and solve the issue.

Cryptofowl avatar Dec 03 '22 17:12 Cryptofowl

I've edited this issue to include a checklist of stuff the word filter does not yet cover.

m88youngling avatar Dec 26 '22 14:12 m88youngling

I edited this again to include user profiles

m88youngling avatar Jan 16 '23 19:01 m88youngling

Closing as this has been implemented in #603

Slendy avatar Jan 21 '23 03:01 Slendy