Text Organizer Program for Python:
Guidelines
- Users first defines the tags.
- Anything that does not have a tag gets deleted.
- The first letter in each sentence gets capitalized.
- Remove vertical spaces between lines.
See below imput.txt --> output.txt for example.
Imput.txt
/a = [Single Numbers]
/b = [Double Letters]
/c = [Double Numbers]
/d = [Paragraphs]
1 /a
2 /a
%%
33 /c
Darrick said: "This book is phenomenal! The added online interaction is amazing, I still haven't figured out everything, but people who say this story was bad obviously didn't pursue the mysteries that weren't answered in the book. There's so much more to it! /d
aa /b
3 /a
4 /a
Ginny said: "Loved, loved, loved this story about the women of the Old Testament (Historical Fiction). This story really kept me interested and read the book in 3 days. Excellent writing and story!Ginny said: "Loved, loved, loved this story about the women of the Old Testament (Historical Fiction). This story really kept me interested and read the book in 3 days. Excellent writing and story! /d
bb /b
aa /b
vv /b
1 /a
33 /c
6 /a
bb /b
cc /b
8 /a
$$$
Desired Output.txt
Single Numbers
1.
2.
3.
4.
Double Letters
Aa.
Vv.
Bb.
Cc.
Double Numbers
33.
44.
55.
66.
Paragraphs
Darrick said: "This book is phenomenal! The added online interaction is amazing, I still haven't figured out everything, but people who say this story was bad obviously didn't pursue the mysteries that weren't answered in the book. There's so much more to it!.
Ginny said: "Loved, loved, loved this story about the women of the Old Testament (Historical Fiction). This story really kept me interested and read the book in 3 days. Excellent writing and story!Ginny said: "Loved, loved, loved this story about the women of the Old Testament (Historical Fiction). This story really kept me interested and read the book in 3 days. Excellent writing and story!".