The script elements would require:
1. An input text box to input the original text that should allow for up to 50,000 words of text, assuming there is even a need for a restriction on the amount of words. My preference would be no limitation on the amount of text that can be input.
2. An input text field to input the "minimum" number of words per paragraph to be formatted to.
3. A submit button to start the formatting of the text.
Example of how the paragraphs will be formatted and displayed:
Let's say I have 30,000 words of text with no line breaks made up of sentences. I would paste this text into the text box of bullet point number 1 above.
Let's say I want the paragraphs to be broken up into a "minimum" of 150 words per paragraph. I would enter 150 into the text box from bullet point number 2 above and click the submit button from bullet point 3 above.
Upon clicking the submit button, the script should take the first sentence from the original 30,000 words of text and count the words. If the word count does not equal 150, the script would add the next sentence to the paragraph and count the words of these 2 sentences. If the word count does not equal 150, it would add the next sentence and this would repeat until the word count reached at least 150 words (likely the 150 words would be exceeded with the last full sentence added, but the loop shouldn't stop until the word count is at least 150 words). This paragraph would then be displayed on the web page (or stored in an array and then the whole array could be displayed after all paragraphs are broken up) and the script would build the next paragraph just as it built the first and would continue this until all 30,000 words of text are broken up (the last paragraph may not have enough text to reach the 150 word minimum and this would be ok).
Upon completion, all of the broken up paragraphs should be displayed on the web page so that when the source code of that web page is viewed, it will be very easy for me to scrape the formatted paragraphs.
My budget for a simple script like this one is $30
17 freelancers are bidding on average $32 for this job
"Quality Product", "On time Delivery", "Reasonable Payment", "Future Scope"... If you are looking for all of the above, i am the best option. YOUR SATISFACTION, OUR GOAL...