From 564a19f9c4ae1b1f79a5bf5029584a31f15209d5 Mon Sep 17 00:00:00 2001 From: Wardyn Date: Mon, 16 Jan 2023 00:23:32 -0800 Subject: [PATCH] fixed issue in verb conjugation --- lgfbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgfbot.py b/lgfbot.py index 485821a..d2d2dcc 100644 --- a/lgfbot.py +++ b/lgfbot.py @@ -41,7 +41,7 @@ if verb[-2:] == 'ed' and verb[-3] not in ['a', 'e', 'i', 'o', 'u']: verb = verb[:-2] if verb[-1] in ['a', 'i', 'o', 'u']: verb = verb + 'es' -elif verb[-1] in ['s', 'x'] or verb[-2] == ['s', 'x'] or verb[-2:] == 'ch': +elif verb[-1] in ['s', 'x'] or verb[-2] in ['s', 'x'] or verb[-2:] == 'ch': verb = verb + 'es' elif verb[-1] == 'y' and verb[-2] not in ['a', 'e', 'i', 'o', 'u']: verb = verb[:-1] + 'ies'