# Erro "Body seems unclear" quando os usuários estão digitando em chinês

**URL:** <https://meta.discourse.org/t/body-seems-unclear-error-when-users-are-typing-in-chinese/88715>\
**Category:** Product Support\
**Created:** [30 Maio , 2018 02:21 UTC](https://meta.discourse.org/t/body-seems-unclear-error-when-users-are-typing-in-chinese/88715 "2018-05-30T02:21:51Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [22 Julho , 2024 15:21 UTC](https://meta.discourse.org/t/body-seems-unclear-error-when-users-are-typing-in-chinese/88715/13 "2024-07-22T15:21:20Z")

</div>

Obrigado @mentalstring, usei seu PR como inspiração para

> <https://github.com/discourse/discourse/pull/28018>
>
> This improves the \`TextSentinel\` so that we don't consider CJK text as being upp…ercase and thus failing the validator.
> 
> It also optimizes the entropy computation by using native ruby \`.bytes\` to get all the bytes from the text.
> 
> It also tweaks the \`seems\_pronounceable?\` and \`seems\_unpretentious?\` check to use the \`\\p{Alnum}\` unicode regexp group to account for non-latin languages.
> 
> Reference - https://meta.discourse.org/t/body-seems-unclear-error-when-users-are-typing-in-chinese/88715
> 
> Inspired by https://github.com/discourse/discourse/pull/27900

Que também inclui algumas melhorias de desempenho e melhor tratamento de locais não latinos 👍

(_cc @lindsey_)

---

_[View the full topic](https://meta.discourse.org/t/body-seems-unclear-error-when-users-are-typing-in-chinese/88715)._
