translate_word

##Translate Words Challenge

The task at had is that, given a text file, replace all possible words in English to French using any programming language of choice

What is the input?

  1. A text file that has more than one lakh lines. The file is t8.shakespeare.txt.
  2. A replace words list that has a 1000 words. The words in the list should be replaced with case being maintained. The file is find_words.txt What needs to be done?
  3. Find an English to French dictionary
  4. Read the text file, replace words and dictionary
  5. Find all words that in the replace words list that has a replacement in the dictionary
  6. Replace the words in the text file
  7. save the processed file

What is the expected output?

  1. Unique list of words that was replaced with French words from the dictionary
  2. Number of times a word was replace
  3. Frequency of each word replaced
  4. Accuracy of the replace in terms of all occurences, casing and special characters to be maintained accurately
  5. Time taken to process
  6. Memory taken to process