# Censor words should support sentence level censoring for Chinese

**URL:** https://meta.discourse.org/t/censor-words-should-support-sentence-level-censoring-for-chinese/71288
**Category:** Feature
**Created:** [October 3, 2017, 5:41am UTC](https://meta.discourse.org/t/censor-words-should-support-sentence-level-censoring-for-chinese/71288 "2017-10-03T05:41:39Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [October 3, 2017, 6:13am UTC](https://meta.discourse.org/t/censor-words-should-support-sentence-level-censoring-for-chinese/71288/2 "2017-10-03T06:13:05Z")

</div>

There is a discussion here:

> [@Censored pattern](https://meta.discourse.org/t/censored-pattern/66912/6):
>
> @sam is correct in that \b doesn’t seem to match any Unicode, or any non-ASCII word breaks. \w seems to be defined narrowly as [A-Za-z0-9\_], probably just to parse source-code type texts. And \b is simply (\w\W|\W\w). So using \b has the net effect of turning any character outside simple ASCII letters/digits into white-space letters. There doesn’t seem to be an easy way out to deal with this. An option to deal with this is to omit the \b wrapping altogether – a good idea because this will n…

---

_[View the full topic](https://meta.discourse.org/t/censor-words-should-support-sentence-level-censoring-for-chinese/71288)._
