Semantics is the study of meanings of words, phrases and sentences. It involves analyzing conceptual meanings, which are the basic components of a word's meaning, and associative meanings, which are connotations attached to a word. Semantics also examines how words fulfill roles like agent, theme, and experiencer within sentences, and lexical relations between words such as synonyms, antonyms, and polysemy.