Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data BadEntry = BadEntry {}
- unreasonableMetaphone :: Set BadEntry -> Text -> Set BadEntry
- unreasonableWord :: Set BadEntry -> Text -> Set BadEntry
- unreasonableMatches :: (BadEntry -> Text -> Bool) -> Set BadEntry -> Text -> Set BadEntry
- readWordSet :: String -> IO (Set BadEntry)
- makeBadEntry :: ByteString -> BadEntry
- isEmptyEntry :: BadEntry -> Bool
Documentation
unreasonableMatches :: (BadEntry -> Text -> Bool) -> Set BadEntry -> Text -> Set BadEntry Source #
Given a check to see if a value is bad, return all the matching bad entries for a single sentence
readWordSet :: String -> IO (Set BadEntry) Source #
Read the word set file (line separated phrases) with the double metaphone applied to each word
makeBadEntry :: ByteString -> BadEntry Source #
isEmptyEntry :: BadEntry -> Bool Source #