You obvious know next to nothing about English syntax. Have you never wondered why you can learn python in a day or two, but not English or Chinese?
First of, you need a huge dictionary of all words and rules for their conjugations.
Then you need a huge rule set for bound morphemes. Which adjectives can you add 'ly' to in order to make them adverbs? There are literally hundreds if not thousands of bound morphemes and they can sometimes only be applied to certain words within certain word-classes.
Then you need a huge rule set for when each word acts as a specific word class (is bank a noun or a verb? Is anime a noun or an adjective? Is like a verb or preposition? You know, "Time flies like an arrow, fruit flies like a banana", actually like can behave like several wordclasses)
These are not solved problems yet, but we are getting very good at them now. We weren't 4 years ago.
Failing that, you could also take and annotate word classes in thousands of pages of text, and then use a machine algorithm to apply similar annotations in the the text entered into the program. Unless you are expecting people to write articles for the Wall Street Journal, this might not be such a good route either.