From 7348ef0354c987078593fb2ed9b72e435633e4cd Mon Sep 17 00:00:00 2001 From: xfnw Date: Wed, 9 Mar 2022 14:00:51 -0700 Subject: [PATCH] noun count should not be used to end sentances what in the world was i thinking, and how did i not notice this sooner? --- modules/nlp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nlp.py b/modules/nlp.py index 61a6729..085defa 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -78,7 +78,7 @@ async def genOut(self, noun): out = [noun] while ( beg.find_one(word=out[0]) is None - or nouns.count(word=out[0]) - 1 > iter * shared.enmul + or beg.count(word=out[0]) - 1 > iter * shared.enmul ) and iter < shared.maxiter: try: out = [ @@ -101,7 +101,7 @@ async def genOut(self, noun): iter = 0 while ( end.find_one(word=out[-1]) is None - or nouns.count(word=out[-1]) - 1 > iter * shared.enmul + or end.count(word=out[-1]) - 1 > iter * shared.enmul ) and iter < shared.maxiter: try: out.append(