Reverse dictionary keys and values using reverse.py
masterThe reverse.py script is used to reverse the keys and values within dictionary files. This requires Python 3.
Usage Pattern:
python3 reverse.py <input_file1> <input_file2> ... <output_file1> <output_file2> ...
Example:
To reverse the contents of TWVariants.txt, TWPhrases.txt, and HKVariants.txt into new files with the Rev suffix:
python3 reverse.py 'TWVariants.txt' 'TWPhrases.txt' 'HKVariants.txt' 'TWVariantsRev.txt' 'TWPhrasesRev.txt' 'HKVariantsRev.txt'