From 6de0b5ce131746c88b7040ddde1e9b84f29cece3 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 3 Feb 2023 09:19:43 -0500 Subject: Bot should only use relatively common words fixes #24 --- lingo.cpp | 3 ++- vendor/verbly | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lingo.cpp b/lingo.cpp index 3982f2a..be58e1c 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -498,7 +498,8 @@ private: verbly::filter wordFilter = (verbly::form::proper == false) && (verbly::form::length >= 3) && - (verbly::form::length <= 11); + (verbly::form::length <= 11) && + ((verbly::form::frequency > 2000000) || (verbly::form::complexity > 1)); verbly::filter cleanFilter = !(verbly::word::usageDomains %= (verbly::notion::wnid == 106718862)) // ethnic slurs diff --git a/vendor/verbly b/vendor/verbly index 06e4672..c97c846 160000 --- a/vendor/verbly +++ b/vendor/verbly @@ -1 +1 @@ -Subproject commit 06e4672540094a851542b47abaf022f934b63b09 +Subproject commit c97c846887eecc75e2f06c56f5e4b8def63ae7a5 -- cgit 1.4.1