Syntax is linguistic structure above the word level, most commonly dealing with how sentences are formed. It refers both to particular sets of rules, and also to the academic field that studies those rules . Many professionals in this discipline attempt to find general rules that apply to all natural languages. In mathematics, the term syntax is also used to refer to the rules governing the behavior of mathematical systems, such as formal languages used in logic. (See logical syntax.)