Problem: Sentence1: The only girl who would have him was the miller's daughter.
Sentence2: We had a hard year last year, with the locust swarms and all that.
Q: Does the term have mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Analyze the evidence in a criminal trial.
Sentence2: The inspector analyzed the building for its soundness.
Q: Does the term analyze mean the same thing in both these sentences?

Answer: the same meaning

Problem: Sentence1: He has a special place in my thoughts.
Sentence2: Your place or mine?
Q: Does the term place mean the same thing in both these sentences?

Answer: different meanings

Problem: Sentence1: Apply for a job.
Sentence2: He applied for a leave of absence.
Q: Does the term apply mean the same thing in both these sentences?

Answer:
the same meaning