banwords-0.2.0.1: Generalized word blacklister

Safe HaskellNone
LanguageHaskell2010

Heuristics.BanWords

Synopsis

Documentation

newtype MatchPolicy Source

Constructors

MatchPolicy 

Instances

banExact :: MatchPolicy Source

Parses sucessfully (which means the word gets blocked) if any of the Texts in the blacklist are an exact match.

banAlmostExact :: MatchPolicy Source

Parses sucessfully (which means the word gets blocked) if any of the Texts in the blacklist are a match.

Case is ignored for ASCII characters. Non-alphabetic Unicode characters at either the start of the end of the word can be skipped.

E.g. " Admin" is banned against ["admin"], but "a admin" isn't.