User: Aaron -- 2015-07-01 << 1308 1310 >> |
Hits: 3139 |
Type: Random word generator |
Search all Random word generator examples |
Description: |
I would like to use a variation of number 785 that replaces words in a text file from a word list with synonyms and phrases. |
Input Sample: |
The men and women were walking down the street enjoying the evening. Replace words: good men women street etc. Replacement strings: rand_str(1,'excellent','wonderful','great','terrific') rand_str(1,'boy friends','neighbors','gents','guys') rand_str(1,'ladies','girl friends','pretty women','female friends') rand_str(1,'boulvard','Parkland Avenue','sidewalk','road') etc. There can be a large number of words to replace with a large synonym word/phrase list. |
Output Sample: |
Possible output: The gents and ladies were walking down the sidewalk enjoying the evening. etc. The boy friends and girl friends were walking down the boulevard enjoying the evening. etc. |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. prepare a text file word_replace.txt with following format: 2. open "Tools->Batch Runner" menu 3. drag multiple text files for replace to "Batch Runner" window 4. click "Fast Replace" button, click "import" to import the defined "word_replace.txt" 5. make sure "reg exp", "cross line" and "whole word" options are checked, click "replace", done. |
Screenshot 1: Fast_Replace_Window |