I need to write a program that reads a text file, which contains words that are followed with a preposition. If the preposition is wrong for the word, the program is supposed to warn the reader and suggest the correct preposition that follows a specific word.
Ex:
>> The decrease *of* (in) diseases is a positive development...
the preposition of is not correct, in is.
I am having a hard time starting, I don't know how the whole structure should look? maybe a dicitionary with the words (as keys) and prepositon. {"decrease":"of"} ?
Could anybody help =)??