From 7d1bfbf73e5095bb680e859f7bbd7a4428b647e2 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Sat, 1 Jun 2019 10:33:02 +0200 Subject: [PATCH] wordform all only lowercase --- wani.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wani.py b/wani.py index 2a62094..3fc185d 100644 --- a/wani.py +++ b/wani.py @@ -194,8 +194,11 @@ class LexisCR(ComponentRepresentation): class WordFormAllCR(ComponentRepresentation): def _render(self): - txt = "/".join(set([w.text for w in set(self.words)])) if len(self.words) > 0 else None - return txt + if len(self.words) == 0: + return None + else: + forms = [w.text.lower() for w in self.words] + return "/".join(set(forms)) class WordFormAnyCR(ComponentRepresentation): def _render(self):