SECTION 13 / 17

When the nearest-name rule gets meaning wrong

1 min read
In “Vedanayagam, his class teacher”, “his” refers to Swaminathan. The nearest explicit name is not the right answer here.
In “Vedanayagam, his class teacher”, “his” refers to Swaminathan. The nearest explicit name is not the right answer here.
PositionPronoun contextNearest explicit person nameMeaning in this passage
9his eyesSwaminathanSwaminathan
11He consideredSwaminathanSwaminathan
40He shudderedSwaminathanSwaminathan
55Vedanayagam, his class teacherVedanayagamSwaminathan
61headmaster with his thin long caneVedanayagamheadmaster

At position 55, the teacher is Vedanayagam, but “his class teacher” means Swaminathan’s class teacher. At position 61, the cane belongs to the headmaster. Headmaster is a person described by a role, not one of our two explicit names. Both examples show that syntax and context matter.

Backward search and forward LastName memory can implement the same inadequate nearest-name rule. Making that rule faster does not make it a correct general language algorithm. Test counterexamples, state the rule’s limits and flag unresolved meaning rather than confidently returning a wrong person.

A richer resolver could remember multiple candidate people and roles, read sentence structure, and return uncertainty when the evidence is insufficient. That is a direction for improvement, not a complete natural-language solution taught by this small exercise. A strict procedure contract should promise only the rule it can actually perform.

Try it yourself

If a procedure correctly finds the nearest name at position 55, has it correctly understood “his”?

Show explained answer

No. It correctly performed a search rule, but the rule returns Vedanayagam while the meaning here is Swaminathan.

Try it yourself

Why does the word headmaster matter although it is not a personal name?

Show explained answer

A role can refer to a person. Meaning cannot always be reduced to searching a fixed list of names.

Try it yourself

What is the right response to a counterexample?

Show explained answer

Keep it in the tests, explain why the current rule fails, and refine or limit the rule. Do not hide it by choosing only easy examples.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑