Shakespeare liked writing comedies.The sentence is being analysed by five rule applications:
To apply a rule it's not sufficient to know the spelling of a word or an allomorph. A rule also requires morphological and syntactic information, such as word class, gender, meaning of a suffix and much more. This information associated with a part of speech (sentence, word form or allomorph) is called its category. The analysis of a sentence or a word returns such a category as result.
``'' + ``Shakespeare'' ``Shakespeare'' + ``liked'' ``Shakespeare liked'' + ``writing'' ``Shakespeare liked writing'' + ``comedies'' ``Shakespeare liked writing comedies'' + ``.''