PDA

View Full Version : String Manipulation to Sentence.



icemail
10-02-2019, 03:49 AM
İnput



Are we eating outside?



He is buying one hat


I am driving


The girl is drinking juice


The woman is wearing shoes



We are hugging







Output


Are
we
eating
outside?


He
is
buying
one hat.


I
am
driving.



The girl
is
drinking
juice.


The woman
is
wearing
shoes


We
are
hugging




Hello can we manupulate String? From sentence to subject verb object etc?

paulked
10-02-2019, 04:03 AM
From https://grammar.yourdictionary.com/grammar-rules-and-tips/basic-english-grammar-rules.html


There are hundreds of grammar rules (http://grammar.yourdictionary.com/grammar-rules-and-tips/11-Rules-of-Grammar.html) but the basics refer to sentence structure and parts of speech (https://examples.yourdictionary.com/part-of-speech-examples.html), including nouns, pronouns, verbs, adjectives, adverbs, prepositions and conjunctions.

So if you've got all the rules, the string can be split!