is it possible that watched words work inaccurately in other languages like Arabic or Persian?
currently we’ve added some words to watched, but topics without such words get affected.
A discussion is ongoing about the inaccuracy of watched words in non-Latin languages, specifically Persian. Pad_Pors reports that topics without the watched words are still being affected. schleifer requests a specific example to investigate further. Pad_Pors provides an example of the Persian word دین (religion) being triggered by words containing the same sequence of letters but with different meanings. codinghorror suggests using regex to match spaces or non-word characters on each side of the watched word. david notes that the current definition of word boundaries does not work well for non-Latin characters and points to an ongoing discussion on the issue.
is it possible that watched words work inaccurately in other languages like Arabic or Persian?
currently we’ve added some words to watched, but topics without such words get affected.
Can you give some more details with examples?
I’d, I’m just not sure what kind of details or examples may be useful.
by “example”, do you mean a list of Persian words which we have added to watched word, and a Persian text which got affected without containing the words? (would it be useful if the words and the text are not in English?)
Yes. A specific example in Persian showing “this is a text that triggered it, but it does not contain any of the watched words from this list” would be necessary.
ok, I got it! we have this word in our watched word list: دین
and then the last posts that needed approval contained words like this:
اسکاندیناوی
بدین
ندین
دادین
…
these 4 words are all different words with different meanings, but they contain those three letters in the same sequence.
should I add spaces to the watched word? something like this: " دین " instead of this “دین”
The way you should trigger is including the regex for matching spaces or non-word characters on each side. For example let’s say you want to hide the following (kinda) naughty word in English
ass
so you replace it with
butt
Well, that’s called a clbuttic mistake … see Obscenity Filters: Bad Idea, or Incredibly Intercoursing Bad Idea?
The way we define word boundaries doesn’t work well for non-latin characters at the moment. There is some discussion on the issue here: