Skip to content
Snippets Groups Projects
Commit 817ffeea authored by Frederic Aust's avatar Frederic Aust
Browse files

Fall ohne Suchbegriff abgefangen

parent 3885e5ee
No related branches found
No related tags found
No related merge requests found
...@@ -108,12 +108,14 @@ class ModuleGenderneutral: ...@@ -108,12 +108,14 @@ class ModuleGenderneutral:
endstring += f' {key}: {self.genderneutral_dict[word][key]}\n' endstring += f' {key}: {self.genderneutral_dict[word][key]}\n'
continue continue
if endstring == '': if endstring == '' and len(words) >0 and len(words[0])>0:
if len(words) > 1: if len(words) > 1:
endstring += 'Dieser Satz' endstring += 'Dieser Satz'
else: else:
endstring += 'Dieses Wort' endstring += 'Dieses Wort'
endstring += ' ist nach aktueller Version von geschicktgendern.de genderneutral.' endstring += ' ist nach aktueller Version von geschicktgendern.de genderneutral.'
elif endstring =='':
endstring +='"Wer nichts sagt, macht jedenfalls nichts falsch" \nZitat von https://www.lawblog.de/archives/2019/07/24/wer-nichts-sagt-macht-jedenfalls-nichts-falsch/ \n(29.09.2021 abgerufen)'
except Exception as ex: except Exception as ex:
self.log.error(f"{self.tag}Fucked up checking for bad words: {ex}") self.log.error(f"{self.tag}Fucked up checking for bad words: {ex}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment