RandomPersonSwapper swaps names in text randomly.
docker build -t name_swapper .
Run sh file with absolute path to file
sh run.sh /path/to/file
Output will be placed right next to input file and look like that:
File name | Purpose |
---|---|
out_{filename} | text after swaps |
rules_{filename} | rules of swapping |
Original | Output Text | List of Swap Rules |
---|---|---|
Andrew. Phillip. Tom. Sam. Richard Dokkins. | Andrew. Tom. Phillip. Richard Dokkins. Sam. | [['Tom', 'Phillip'], ['Sam', 'Richard Dokkins']] |
Andrew. Phillip. Tom. Sam. Richard Dokkins. | Sam. Phillip. Richard Dokkins. Andrew. Tom. | [['Tom', 'Richard Dokkins'], ['Sam', 'Andrew']] |
Original | Output Text | List of Swap Rules |
---|---|---|
While in France, Christine Lagarde discussed short-term stimulus efforts in a recent interview with the Wall Street Journal. While in France, Anna Mironova discussed short-term stimulus efforts in a recent interview with the Wall Street Journal. First up in London will be Riccardo Tisci, onetime Givenchy darling, favorite of Kardashian-Jenners everywhere, who returns to the catwalk with men’s and women’s wear after a year and a half away, this time to reimagine Burberry after the departure of Christopher Bailey. Barbara wants to know how could you do it. It's alright. Jane was mistaken. Sandra. James is her lover. | While in France, Sandra discussed short-term stimulus efforts in a recent interview with the Wall Street Journal. While in France, Barbara discussed short-term stimulus efforts in a recent interview with the Wall Street Journal. First up in London will be Christopher Bailey, onetime Givenchy darling, favorite of Kardashian-Jenners everywhere, who returns to the catwalk with men’s and women’s wear after a year and a half away, this time to reimagine Burberry after the departure of Riccardo Tisci. Anna Mironova wants to know how could you do it. It's alright. James was mistaken. Christine Lagarde. Jane is her lover. | [['Christopher Bailey', 'Riccardo Tisci'], ['Jane', 'James'], ['Anna Mironova', 'Barbara'], ['Sandra', 'Christine Lagarde']] |