diff options
Diffstat (limited to 'grunge.cpp')
-rw-r--r-- | grunge.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/grunge.cpp b/grunge.cpp index bc3c560..cd63884 100644 --- a/grunge.cpp +++ b/grunge.cpp | |||
@@ -329,10 +329,15 @@ Magick::Image grunge::pastelizeImage(Magick::Image input) const | |||
329 | 329 | ||
330 | std::string grunge::generateTweetText(verbly::word pictured) const | 330 | std::string grunge::generateTweetText(verbly::word pictured) const |
331 | { | 331 | { |
332 | verbly::filter formFilter = | ||
333 | (verbly::form::proper == false) | ||
334 | // Blacklist slurs and slur homographys | ||
335 | && !(verbly::word::usageDomains %= (verbly::notion::wnid == 106717170)); | ||
336 | |||
332 | verbly::word simpler = database_->words( | 337 | verbly::word simpler = database_->words( |
333 | (verbly::notion::partOfSpeech == verbly::part_of_speech::noun) | 338 | (verbly::notion::partOfSpeech == verbly::part_of_speech::noun) |
334 | && (verbly::notion::fullHyponyms %= pictured) | 339 | && (verbly::notion::fullHyponyms %= pictured) |
335 | && (verbly::form::proper == false)).first(); | 340 | && (verbly::word::forms(verbly::inflection::base) %= formFilter)).first(); |
336 | 341 | ||
337 | std::vector<std::string> symbols = {"☯","✡","☨","✞","✝","☮","☥","☦","☪","✌"}; | 342 | std::vector<std::string> symbols = {"☯","✡","☨","✞","✝","☮","☥","☦","☪","✌"}; |
338 | std::string prefix; | 343 | std::string prefix; |