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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lingo.cpp') 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 -- cgit 1.4.1