Batch File for SpinText system
Posted: 25 May 2024 09:01
Hello,
I just started using batch files, and I have a little question. I am trying to create a simple spintext system for which the script will replace all the strings in text files, like with a spintext system.
Basically, I have 3 TXT files which contains my libraries of synonyms, and the content looks like that for example:
computer [PC|computer system]
laptop [portable computer]
mobile phone [cellphone|mobile|portable phone]
etc...
And I would like the script to use these 3 libraries to replace the text in the TXT Files contained in a folder.
The reason I have 3 libraries is because there is several degrees of priorities of replacement. If for example, the script replace a string based on a expression found on the library considered as the most important, it replace the string and continue with the rest of text. The string must not be replaced a second time by the libraries of lower priorities. So there is a HIGH, MEDIUM and LOW priority library.
(I hope my explanation aren't confusing as my technical language is limited.)
Note: That I would like the script to batch process several Text files at once that are in the same folder.
I hope you can help with that. Thank you very much.
I just started using batch files, and I have a little question. I am trying to create a simple spintext system for which the script will replace all the strings in text files, like with a spintext system.
Basically, I have 3 TXT files which contains my libraries of synonyms, and the content looks like that for example:
computer [PC|computer system]
laptop [portable computer]
mobile phone [cellphone|mobile|portable phone]
etc...
And I would like the script to use these 3 libraries to replace the text in the TXT Files contained in a folder.
The reason I have 3 libraries is because there is several degrees of priorities of replacement. If for example, the script replace a string based on a expression found on the library considered as the most important, it replace the string and continue with the rest of text. The string must not be replaced a second time by the libraries of lower priorities. So there is a HIGH, MEDIUM and LOW priority library.
(I hope my explanation aren't confusing as my technical language is limited.)
Note: That I would like the script to batch process several Text files at once that are in the same folder.
I hope you can help with that. Thank you very much.