Question: are homonyms part of grammar?
Answer: It might be that they are spelled similarly, they are pronounced almost identically or they have multiple meanings according to the phrase or American/British context in which they are used. But all these similarities are actually defined in the English grammar as homonyms, homophones and homographs.