eros-0.6.0.0: A text censorship library.

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

Text.Eros.Message

Description

This module deals specifically with pieces of Text.

Synopsis

Documentation

type BadWord = TextSource

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

badWordsRestof :: Message -> PhraseMap -> [(BadWord, Restof)]Source

Given a message, get all the bad words in the message, along with the rest of the message

badWordMults :: Message -> PhraseMap -> Map BadWord MultiplicitySource

Given a message, get all the bad words in the message, along with their multiplicity.

messageScore_ :: Message -> PhraseMap -> ScoreSource

Message score flat - no-depth score