In Progress

PHP - Script to Break Text into Paragraphs

I need a simple PHP script that will allow me to take some text made up of 1 large paragraph with no line breaks and format it by breaking it down into paragraphs containing a minimum number of words per paragraph (set by variable input) and displaying the formatted paragraphs on that or another web page. The paragraphs should not be displayed on the page using javascript but should be displayed using html or php.

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

Skills: HTML, PHP

See more: paragraph php script, text easy, source formatting, bullet line, text break paragraphs, script words, word script, one line php, format php code, source php script, php text array, text line breaks word, count words text, php script last, php html text, variable html, 150 words easy, php script limitation, text javascript, php code format, text line breaks, minimum 150 words, text using, javascript text, script box

About the Employer:
( 17 reviews ) Riverview, United States

Project ID: #1273311

Awarded to:

longv27

pick me!!! lol

$30 USD in 0 days
(1 Review)
1.0

17 freelancers are bidding on average $32 for this job

DrTech76

Hi!

$30 USD in 0 days
(292 Reviews)
6.6
Max01

pmb me the details i can do it thx

$30 USD in 0 days
(94 Reviews)
5.8
Softanz

Professional developers here. I have done similar projects & I have created a demo for you in this regard. please check you PMB for demo.

$30 USD in 0 days
(42 Reviews)
5.3
greencubes

your work is under progress...

$30 USD in 0 days
(16 Reviews)
5.3
MovEdx01

I would love to do that for you.

$30 USD in 1 day
(11 Reviews)
3.9
m11ph

Hi sir, I have read the project details and understand what needs to be done for the script. Please see PMB for more details.

$30 USD in 2 days
(13 Reviews)
3.8
sthmanish

Check ur PMB

$40 USD in 2 days
(7 Reviews)
3.1
dbratnam123

Hi,simple script ready to start

$30 USD in 0 days
(1 Review)
2.2
mahmed0715

hi,php expert here.please see inbox for details.thanks

$30 USD in 1 day
(1 Review)
1.8
mewever

An easy script for me write.

$30 USD in 1 day
(1 Review)
1.6
engelixir

HI SIR ,will be happy to have work with u plz check pmp

$30 USD in 1 day
(0 Reviews)
0.0
ardhendusaha

Hi, We are fastest growing IT company based in India. Our philosophy is integrating bold ideas together with clean crisp design to help create designs & development that establishes your identity to the world. We rely More

$40 USD in 1 day
(0 Reviews)
0.0
NirmalBhary

I would like to do this for you. Plz check you PMB.

$40 USD in 2 days
(0 Reviews)
0.0
zxczxcz

Hello, I'm an experienced php coder and I can do this for you. I can also add the options to insert paragraph among the separated text or other tags, to download the finished text, just display it, email it, you nam More

$30 USD in 3 days
(0 Reviews)
0.0
theRealCoder

"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...

$30 USD in 0 days
(0 Reviews)
0.0
chirag88

I can do this with proper validations applied quickly

$30 USD in 1 day
(0 Reviews)
0.0
itsweb

I am ready to work

$30 USD in 1 day
(0 Reviews)
0.0