Portability | archlinux |
---|---|
Stability | experimental |
Maintainer | Peter Harpending <pharpend2@gmail.com> |
Safe Haskell | None |
This module deals specifically with pieces of Text.
- type BadWord = Text
- type Message = Text
- type MessagePart = Text
- type Multiplicity = Int
- type Restof = Text
- type RestOf = Text
- type Word = Text
- type Score = Int
- type SubMap = PhraseMap
- badWordsRestof :: Message -> PhraseMap -> [(BadWord, Restof)]
- badWordMults :: Message -> PhraseMap -> Map BadWord Multiplicity
- messageScore_ :: Message -> PhraseMap -> Score
- getBadWordScore :: BadWord -> PhraseMap -> Score
- getBadWordSubMap :: BadWord -> PhraseMap -> SubMap
- badWordsRestofScoreSubm :: Message -> PhraseMap -> [(BadWord, Restof, Score, SubMap)]
- brss :: Message -> PhraseMap -> [(BadWord, Restof, Score, SubMap)]
- messageScore :: Message -> PhraseMap -> Score
Documentation
I can never remember what I named things, so here are a bunch of type synonyms.
type MessagePart = TextSource
type Multiplicity = IntSource
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
getBadWordScore :: BadWord -> PhraseMap -> ScoreSource
getBadWordSubMap :: BadWord -> PhraseMap -> SubMapSource
messageScore :: Message -> PhraseMap -> ScoreSource