eros-0.5.3.2: A text censorship library.

Portabilityarchlinux
Stabilityexperimental
MaintainerPeter Harpending <pharpend2@gmail.com>
Safe HaskellNone

Text.Eros.Message

Description

 

Synopsis

Documentation

type BadWord = TextSource

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 -> ScoreSource

Given a message, find its score.