A fast and simple library for detecting swear words
difficulty
and path
are optional values.
difficulty
is an int between 1
and 100
, the higher the value the harder to match a word.
from noswear import noswear
noswear("string for checking", difficulty, path).getresult
If the word is not detected the value from fullresult
will be None
.
from noswear import noswear
noswear("string for checking", difficulty, path).fullresult