You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.2 KiB
65 lines
2.2 KiB
import random
|
|
import time
|
|
|
|
wordmord = {
|
|
'death':
|
|
{
|
|
'para-etymology': ['murder', 'killing', 'φόνος', 'φονός', 'φώνος', 'φωνή', 'διακοπή', 'depth', 'debt', 'θα είναι αυτός', 'θα νάτος'],
|
|
'demonic-etymology': ['telos', 'kako', 'symfora', 'tragodia', 'καλά του κάνανε'],
|
|
'pira-etymology': ['most', 'horismos', 'siopi', 'έφυγε', 'την χάσαμε', 'ταξίδεψε', 'θάνατος']
|
|
},
|
|
'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['death']['para-etymology'][0])
|
|
|
|
sentence = input('give me your words / δώσε μου κείμενο: ')
|
|
|
|
def makedemonic():
|
|
new_sentence = sentence
|
|
for word in wordmord:
|
|
if word in new_sentence:
|
|
new_sentence = new_sentence.replace(word, random.choice(wordmord[word]['demonic-etymology']))
|
|
print(new_sentence)
|
|
|
|
def makepara():
|
|
new_sentence = sentence
|
|
for word in wordmord:
|
|
if word in new_sentence:
|
|
new_sentence = new_sentence.replace(word, random.choice(wordmord[word]['para-etymology']))
|
|
print(new_sentence)
|
|
|
|
def makepira():
|
|
new_sentence = sentence
|
|
for word in wordmord:
|
|
if word in new_sentence:
|
|
new_sentence = new_sentence.replace(word, random.choice(wordmord[word]['pira-etymology']))
|
|
print(new_sentence)
|
|
|
|
|
|
type = input('choose type of transformation / τύπος μετάλλαξης: ')
|
|
|
|
if type == 'demonic':
|
|
makedemonic()
|
|
elif type == 'para':
|
|
makepara()
|
|
elif type == 'pira':
|
|
makepira()
|
|
else:
|
|
makedemonic()
|
|
time.sleep(1)
|
|
makepara()
|
|
time.sleep(1)
|
|
makepira()
|
|
|
|
|