I require a program/script whereby a user can import a text document up to 6000 lines long, and change it this way;
After every 400 characters the script looks look for the first sentence period, and uses that content to create seperate .txt files. The script continues to do the same until the large file is split into multiple files in a user defined folder.
Each .txt should have complete sentences with a period at the end of the last finished sentence.
Of course the script has to be smart enough to avoid decimal point fractions, web addresses, etc, and only make the cut at the end of actual sentences.
Is this possible?
If it is better to run this script from a destop application, so be it, but if I could run it from my web site that would be great - then I can't lose the program if it is running from one of my servers.
As far as the issue of the dots/periods creating non-sentence end point for splitting, I am fine with changing web addresses, decimal fractions, abbreviations etc. all together - I actually encourage this, so remove periods/dots from the text that would cause false sentence ends.