diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-03 09:19:43 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-03 09:19:43 -0500 |
commit | 6de0b5ce131746c88b7040ddde1e9b84f29cece3 (patch) | |
tree | d0fcf9d7613f0c045dd08415060e2303ca61b8c8 | |
parent | c550a06cd6c998dd659b49d3edb1543a3a2dd37d (diff) | |
download | lingo-6de0b5ce131746c88b7040ddde1e9b84f29cece3.tar.gz lingo-6de0b5ce131746c88b7040ddde1e9b84f29cece3.tar.bz2 lingo-6de0b5ce131746c88b7040ddde1e9b84f29cece3.zip |
Bot should only use relatively common words
fixes #24
-rw-r--r-- | lingo.cpp | 3 | ||||
m--------- | vendor/verbly | 0 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lingo.cpp b/lingo.cpp index 3982f2a..be58e1c 100644 --- a/lingo.cpp +++ b/lingo.cpp | |||
@@ -498,7 +498,8 @@ private: | |||
498 | verbly::filter wordFilter = | 498 | verbly::filter wordFilter = |
499 | (verbly::form::proper == false) && | 499 | (verbly::form::proper == false) && |
500 | (verbly::form::length >= 3) && | 500 | (verbly::form::length >= 3) && |
501 | (verbly::form::length <= 11); | 501 | (verbly::form::length <= 11) && |
502 | ((verbly::form::frequency > 2000000) || (verbly::form::complexity > 1)); | ||
502 | 503 | ||
503 | verbly::filter cleanFilter = | 504 | verbly::filter cleanFilter = |
504 | !(verbly::word::usageDomains %= (verbly::notion::wnid == 106718862)) // ethnic slurs | 505 | !(verbly::word::usageDomains %= (verbly::notion::wnid == 106718862)) // ethnic slurs |
diff --git a/vendor/verbly b/vendor/verbly | |||
Subproject 06e4672540094a851542b47abaf022f934b63b0 | Subproject c97c846887eecc75e2f06c56f5e4b8def63ae7a | ||