Hi, I need a simple text replace program written in any programming language that does the following: (see attached video)
Input text:
1 Spun text (example attached)
1 word list (attached)
1 user given word (e.g.: "dog food|")
1 number given by user (the number of replaces that should be made by the program) - let's call this N
What the program should do:
It should add the user given word N times into the spun text in a way so that they are evenly distributed (so they are as far away from each other as possible, e.g. first word, last word and in between ...). But it should only add it to nouns. That can be done by checking every first word in a spun variation, and if it's a noun, it should add it there (program will use the word list for that - it contains a list of English nouns). After that, the program should check how many word variations there are where it added the user given word.
Please, watch the video, as it is much more clear than my explanation here. Thank you!
You will see it's a pretty simple program that could be written quite fast. If you have any questions, do not hesitate to ask! Thank you!