tvl-depot/users/glittershark/owothia/chatter.patch
Griffin Smith 2eb90cbca1 feat(owothia): Add owothia
Add owothia, an irc bot that picks a random verb out of a random subset
of messages and replies with a message of the form "<verb> me owo".

it's incredibly messy, full of warnings, includes a *number* of harcoded
things, but also is hilarious.

Change-Id: I73cacd533bbbff9e753d1e542308da25247a7034
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1063
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-07-13 17:31:32 +00:00

19 lines
711 B
Diff

diff --git a/src/NLP/POS/LiteralTagger.hs b/src/NLP/POS/LiteralTagger.hs
index 913bee8..3c2f71d 100644
--- a/src/NLP/POS/LiteralTagger.hs
+++ b/src/NLP/POS/LiteralTagger.hs
@@ -1,4 +1,4 @@
-{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE OverloadedStrings, PackageImports #-}
module NLP.POS.LiteralTagger
( tag
, tagSentence
@@ -27,7 +27,7 @@ import NLP.FullStop (segment)
import NLP.Types ( tagUNK, Sentence, TaggedSentence(..), applyTags
, Tag, POSTagger(..), CaseSensitive(..), tokens, showTok)
import Text.Regex.TDFA
-import Text.Regex.TDFA.Text (compile)
+import "regex-tdfa" Text.Regex.TDFA.Text (compile)
taggerID :: ByteString
taggerID = pack "NLP.POS.LiteralTagger"