Problem: Sentence1: I've always had a liking for reading.
Sentence2: She developed a liking for gin.
Q: Does the term liking mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: He wanted to feel a part of something bigger than himself.
Sentence2: She played the part of Desdemona.
Q: Does the term part mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: The prostitute had a record a mile long.
Sentence2: He ruled that the criminal record of the defendant could not be disclosed to the court.
Q: Does the term record mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: A sudden recognition of the problem he faced.
Sentence2: Give her recognition for trying.
Q: Does the term recognition mean the same thing in both these sentences?

Answer:
different meanings