Homonyms and homophones
Words with the same spelling and pronunciation but distinct meanings are said to be homophones. For instance, the term "bat" can be used to describe both a flying animal and a piece of gear used in games like baseball or cricket.
Words with the same sound but distinct spellings and meanings are known as homophones. For instance, although the words "to," "too," and "two" have similar sounds, their spellings and definitions vary. The words "accept" and "except," "weather" and "whether," and "peace" and "piece" are additional instances.