![]() ![]() load ( 'en' ) profanity_filter = ProfanityFilter ( nlps = /docs for interactive documentation. censor_word ( 'h0r1h0r1' ) # Word(uncensored='h0r1h0r1', censored='***1***1', original_profane_word='h0r') Multilingual analysis from profanity_filter import ProfanityFilter pf = ProfanityFilter ( languages = ) pf. censor_word ( 'oofuko' ) # Word(uncensored='oofuko', censored='******', original_profane_word='fuck') pf. censor_word ( 'fuck' ) # Word(uncensored='fuck', censored='****', original_profane_word='fuck') Deep analysis from profanity_filter import ProfanityFilter pf = ProfanityFilter () pf. Basics from profanity_filter import ProfanityFilter pf = ProfanityFilter () pf. For more examples please see tests folder. Here are the basic examples of how to use the library. Vice versa, the libraryĬannot detect appropriate usage of a profane word. The library cannot detect using profane phrases consisted of decent words. ![]() New languages can be added by supplying dictionaries.
0 Comments
Leave a Reply. |