文件名称:expletive:Elixir的*过滤器库
文件大小:19KB
文件格式:ZIP
更新时间:2024-05-31 12:47:32
Elixir
冒犯性的 Elixir的淫秽检测和过滤库,受*启发。 安装 将Expletive作为依赖项添加到您的项目mix.exs : def deps do [{ :expletive , " ~> 0.1.0 " }] end 用法 所有Expletive函数都希望通过配置: config = Expletive . configure ( blacklist: ~w[ very bad words ] ) Expletive . profane? ( " this is bad! " , config) # => true Expletive . profane? ( " perfectly safe " , config) # => false Expletive . profanities ( " this is bad, so BAD! " , config) # => ["bad
【文件预览】:
expletive-master
----mix.lock(79B)
----.gitignore(40B)
----mix.exs(1KB)
----data()
--------international.txt(7KB)
--------english.txt(5KB)
----LICENSE(11KB)
----README.md(2KB)
----config()
--------config.exs(1KB)
----lib()
--------expletive()
--------expletive.ex(3KB)
----test()
--------configuration_test.exs(1KB)
--------blacklist_test.exs(354B)
--------test_helper.exs(15B)
--------expletive_test.exs(5KB)
--------agent_test.exs(1KB)