У вас нет прав на выполнение действия «редактирование этой страницы» по следующей причине:
Текст:
{{stub|date=December 2017}} [[File:Whitelist.png|thumb|right|An example of a whitelist.]] A '''whitelist''' is a list of words allowed in a string of text, used to remove or censor undesired language. Whitelists should not contain words that may be used in rude or otherwise inappropriate sentences. A list of example words that are whitelisted was made by Paddle2See [[projects:70179488|here]] but that is not recommended since you can make workarounds in order to make inappropriate phrases.{{citation needed|date=July 2021}} Some whitelists are not used to censor or remove language, but instead to allow access to features only to certain users. However, such restrictions are easily evaded. {{warning|Cloud chat projects are not allowed even if they use word whitelists, as the whitelist filter can be workaroundable. Only cloud chat projects that whitelist entire phrases or complete sentences are allowed.}} == Example Implementation == A technique to implement a whitelist would be to [[Separating a String into Words|split the sentence into words]] and then use this script: <scratchblocks> set [i v] to (0)//i stands for iterator repeat (length of [message v])//"message" should be split into words as stated above change [i v] by (1) if <not<[allowed words v] contains (item (i) of [message v])>> then replace item (i) of [message v] with []//set this to whatever you want to replace a non-allowed word end end </scratchblocks> or: <scratchblocks> set [i v] to (0)//i stands for iterator repeat (length of [message v])//"message" should be split into words as stated above change [i v] by (1) if <(translate (item (i) of [message v]) to (Russian v))=[]> then replace item (i) of [message v] with [(removed)]//set this to whatever you want to replace a non-allowed word end </scratchblocks> == See Also == * [[Cloud Data]] * [[Lists]] [[Category:Scripting Tutorials]]
Записать страницу Отменить