From 25458d8bdb77905191c14c0cf9f230380fc08401 Mon Sep 17 00:00:00 2001 From: nglk Date: Wed, 26 Oct 2022 17:54:56 +0200 Subject: [PATCH] add python script --- para_generator.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 para_generator.py diff --git a/para_generator.py b/para_generator.py new file mode 100644 index 0000000..a4db039 --- /dev/null +++ b/para_generator.py @@ -0,0 +1,21 @@ +wordmord = { + 'kollisa' : + { + 'para-etymology' : ['kelossi', 'attachment', 'virus', 'friendship', 'obsession', 'crash', 'petrified'], + 'demonic-etymology' : ['disease', 'infection', 'τον κόλησαν'], + 'pira-etymology' : ['ευθύνη', 'πήρα την ευθύνη', 'συναίνεση'] + }, + 'monster' : + { + 'para-etymology' : ['κούκλα', 'queen', 'tsoula', 'περήφανη', 'τρελλή', 'τσουλάρα', '', 'chic'], + 'demonic-etymology' : ['τέρας', 'φρικιό', 'πούστης', 'αδελφή', 'τέτοιος', 'ληστής', 'πρεζόνι'], + 'pira-etymology' : ['είμαι τσούλα', 'είμαι τσουλάρα'] + } +} +print(wordmord[1]) + +# Recipe: +# Give one setence as input +# Choose which word you want to replace +# Python selects random word from the dictionary +# It returns the sentence paraphrased