Syntactic function defines a word's or phrase's role within a sentence's structure, dictating its grammatical relationship to other elements and…