Semantics is the study of meaning in language. It examines how words, phrases and sentences convey meaning based on their conceptual and associative meanings. Semantic analysis helps explain why some sentences are syntactically correct but semantically odd due to mismatches between the semantic features of words. Words fulfill different semantic roles like agent, theme, instrument and location that provide meaning within a situation. Lexical relations like synonymy, antonymy and hyponymy describe how words are related through meaning.