what is a course dealing with the rules of language?


Answer :

The answer is grammar.


Grammar is a set of rules for generating logical communication.
All languages have a grammar, and native speakers of a language have internalized the rules of that language’s grammar.