I want a WIN APP in 2 parts coded in Visual Basic to to replace Synonyms in .txt file(s)
Part 1 that allows me to add SYNONYMS to [login to view URL]
These are called TOKENS in format
provider;{provider|supplier}
providers;{providers|suppliers}
client{client|customer}
clients{clients|customers}
Note the [login to view URL] will grow to include several thousand SYNONYMS.
Part 2 is to search a .txt file and replace matching words with TOKENS.
So for example I could add the following to the [login to view URL] :
provider;{provider|supplier}
providers;{providers|suppliers}
client{client|customer}
clients{clients|customers}
The 2nd part function would then search and replace the words "provider", "providers", "client" and "clients" with the corresponding TOKENS.
It should start at the beginning of the .csv and search through the .txt file progressively replacing each single word found with it's matching TOKEN
It will require these extra rules/functions.
a) only treat WHOLE words
b) only treat matching cases ( lower case / Sentence Case / UPPER CASE )
c) do not treat any words inside {} ( other wise it will end up treating matching words in TOKENS )
Finally
The data to be processed may be part of a PHP page which already contains { or | or } so the following additional rules/functions are required.
d)Only process data between %START% and %FINISH% and on output remove %START% and %FINISH%
e)A function to SELECT the number of sentences for OUTPUT at RANDOM, but NOT repeating any sentences.
So suppose the .txt file data had 15 sentences between %START% and %FINISH% and I selected 10, it would choose 10 at random to include in the output.
NOTE : This might require each sentence to be on a separate line.
A suggested GUI is attached.