freedom4free Posted June 9, 2013 Share Posted June 9, 2013 (edited) I am looking for a software or a script that rearranges sentences in a paragraphs or whole article/chapters in a book. Meaning, a software/script that change sentence sequence in paragraphs. Example: 1st sentence becomes last sentence, last sentence becomes the middle sentence, and so forth. So, any one know any script/software that can do this? This is for an experiment with the articles, small books I have written myself and for other reasons. Edited June 9, 2013 by freedom4free Quote Link to comment https://forums.phpfreaks.com/topic/278951-a-software-or-script-that-can-rearrange-sentences-in-a-paragraphs-and-not-rewrite-them/ Share on other sites More sharing options...
requinix Posted June 9, 2013 Share Posted June 9, 2013 Randomize the sentences? Get it into an array and shuffle it. That's one of many options. Quote Link to comment https://forums.phpfreaks.com/topic/278951-a-software-or-script-that-can-rearrange-sentences-in-a-paragraphs-and-not-rewrite-them/#findComment-1434936 Share on other sites More sharing options...
freedom4free Posted June 12, 2013 Author Share Posted June 12, 2013 Randomize the sentences? Get it into an array and shuffle it. That's one of many options. I will greatly appreciate it if you can tell me the exact method on how do I do that with sentences, please? Quote Link to comment https://forums.phpfreaks.com/topic/278951-a-software-or-script-that-can-rearrange-sentences-in-a-paragraphs-and-not-rewrite-them/#findComment-1435476 Share on other sites More sharing options...
requinix Posted June 12, 2013 Share Posted June 12, 2013 I don't know because I can't see what you're working with. All you've described are "paragraphs" and "sentences" in a "book". We need something more concrete. I assume you have some kind of code already. What is it, and what are the values of the variables you have so far? Quote Link to comment https://forums.phpfreaks.com/topic/278951-a-software-or-script-that-can-rearrange-sentences-in-a-paragraphs-and-not-rewrite-them/#findComment-1435487 Share on other sites More sharing options...
freedom4free Posted June 12, 2013 Author Share Posted June 12, 2013 (edited) I don't know because I can't see what you're working with. All you've described are "paragraphs" and "sentences" in a "book". We need something more concrete. I assume you have some kind of code already. What is it, and what are the values of the variables you have so far? I don't have a code since I am not a php programmer. All I want is something that randomize sentences in articles or chapter in a book (which will be taken out and putted in a notepad or pdf or wordpad). So, I have no clue what code I should use or how to do it. So if any software, script, program can do that, let me know! Edited June 12, 2013 by freedom4free Quote Link to comment https://forums.phpfreaks.com/topic/278951-a-software-or-script-that-can-rearrange-sentences-in-a-paragraphs-and-not-rewrite-them/#findComment-1435493 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.