html_
translation_
lib
0.1.0
Module text
Module Items
Functions
In html_
translation_
lib::
utils
html_translation_lib
::
utils
Module
text
Copy item path
Source
Expand description
文本工具函数
Functions
§
contains_
cjk
检查文本是否包含CJK字符
is_
mostly_
ascii
检查文本是否主要由ASCII字符组成
similarity
计算文本相似度
truncate_
words
截断文本到指定长度,保持单词完整性
word_
count
统计文本中的单词数