this is a simple text manipulation program that decodes the vietnamese text and finds the words using a key in the desending order of its frequency.
-
first step is to analyse the character mappings given in the text file.
-
replace the parts of words by matching the mappings.
2.1) give a score to each mapping such that higher score mappings are given priority over lower ones.
2.2) apply the rules in the desending order of score.
-
save the new list in a file.
-
create a dictionary with first letter of the words as the key to optimise the search.
-
get the key from the user and search the words whose start matches the key.
-
print the results in the decreasing order of their frequencies.