# CJK投稿の単語数カウントを改善するか、文字数を使用する

**URL:** <https://meta.discourse.org/t/improve-word-count-calculation-for-cjk-posts-or-use-char-count/380085>\
**Category:** Bug\
**Created:** [2025 年 8 月 24 日午後 3:10 UTC](https://meta.discourse.org/t/improve-word-count-calculation-for-cjk-posts-or-use-char-count/380085 "2025-08-24T15:10:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pangbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pangbo/32/538562_2.png) [@pangbo](https://meta.discourse.org/u/pangbo)\
**Post date:** [2025 年 8 月 25 日午前 11:24 UTC](https://meta.discourse.org/t/improve-word-count-calculation-for-cjk-posts-or-use-char-count/380085/5 "2025-08-25T11:24:46Z")

</div>

中国語の場合、文字数はテキストの長さを測定する最も一般的な方法です。実装としては、正規表現を使用して中国語の文字をフィルタリングし、直接カウントすることができます。このアプローチは十分に効率的であり、中国語の慣習にも合致しています。`char_count`ではなく`word_count`と命名すると少し紛らわしいかもしれませんが、関連する設定の説明でこの点を明確にすることができます。

---

_[View the full topic](https://meta.discourse.org/t/improve-word-count-calculation-for-cjk-posts-or-use-char-count/380085)._
