Problem: Sentence1: Under the head of minor Roman poets.
Sentence2: They shot 20 head of quail.
Q: Does the term head mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Mouths which speak such foulness must be cleansed.
Sentence2: He understood the foulness of sin.
Q: Does the term foulness mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: To pay attention.
Sentence2: She had to pay the penalty for speaking out rashly.
Q: Does the term pay mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: I need to rest for a piece.
Sentence2: She bought a lovely piece of china.
Q: Does the term piece mean the same thing in both these sentences?

Answer:
different meanings