Grammatical competence is the ability to understand and produce well-formed phrases and sentences. It involves understanding the internal organization of words including roots, affixes, and word classes as well as the categories, elements, structures, and processes for building phrases and sentences according to grammatical rules.