Imagine you are given a task to count how many times the definitive article the appears in a document. You decide to split this task into smaller parts.
- First of all, you have to make sure that the word is indeed an article and not just part of another word, such as weather or they.
- Your program should print
Trueif it is indeed just an article andFalseotherwise.
To simplify the task, let's assume that all the input words are lowercased.