Replace words with different synonyms and print each combination in a text file

Yes I search for the synonyms in a dictionary