eros-0.5.2.0: A text censorship library.

Copyright2014, Peter Harpending
LicenseBSD3
MaintainerPeter Harpending <pharpend2@gmail.com>
Stabilityexperimental
Portabilityarchlinux
Safe HaskellNone
LanguageHaskell2010

Text.Eros.Message

Description

 

Synopsis

Documentation

type BadWord = Text Source

I can never remember what I named things, so here are a bunch of type synonyms.

messageSplit :: Message -> PhraseMap -> [(Score, RestOf)] Source

Does a top-level split of a Message. Returns a list of pairs, with the first element being the score up to that point in the message, as well as the rest of the message. That gives you somewhat of an idea how it works, but that's not quite it

messageScore :: Message -> PhraseMap -> Score Source

Given a message, find its score.