【文件属性】:
文件名称:better_profanity:快速清洁,发誓字符串中的单词(和他们的leetspeak)
文件大小:32KB
文件格式:ZIP
更新时间:2021-05-26 16:59:55
python censor words censorship profanity
好*
快速清洁,发誓字符串中的单词(和他们的leetspeak)
当前存在。 建议使用 。
受( 软件包的启发,该库通过使用字符串比较而不是正则表达式来大大快于原始库。
它支持(例如p0rn , h4NDjob , handj0b和b*tCh )。
要求
该软件包可与Python 3.4+和PyPy3 。
安装
$ pip install better_profanity
Unicode字符
仅添加类别Ll , Lu , Mc和Mn中的Unicode字符。 有关Unicode类别的更多信息,请参见。
尚不支持所有语言,例如中文。
用法
from better_profanity import profanity
if __name__ == "__main__":
profanity.load_censor_words()
text = "You p1ec3
【文件预览】:
better_profanity-master
----MANIFEST.in(97B)
----.travis.yml(418B)
----tox.ini(1KB)
----better_profanity()
--------alphabetic_unicode.json(69KB)
--------constants.py(452B)
--------utils.py(1KB)
--------profanity_wordlist.txt(6KB)
--------varying_string.py(2KB)
--------__init__.py(187B)
--------better_profanity.py(9KB)
----LICENSE(1KB)
----CONTRIBUTING.md(2KB)
----setup.py(1KB)
----.gitignore(55B)
----tests.py(10KB)
----README.md(7KB)