On the direction of "relates to"

Here is a sample game:

[code]“Turandot” by Victor Gijsbers

There is a room called In front of the imperial palace. “The steps are still a little slick with blood.”

Turandot is a woman in In front of the imperial palace.

Loving relates various people to various person.
The verb to love (he loves, they love, he loved, it is loved, he is loving) implies the loving relation.

Definition: a person is a lover if it relates to a person by the loving relation.

The player loves Turandot.

When play begins:
if the player is a lover:
say “You are a real lover!”;
if Turandot is a lover:
say “Turandot is a lover!”.[/code]
I am very surprised by the fact that this game prints “Turandot is a lover!”, and doesn’t print “You are a real lover!”.

It seems to me that the evident way of parsing “if X relates to Y by the loving relation” is “if X stands in the loving relation to Y”, which in turn obviously means “X loves Y”. But apparently, Inform 7 reads that first sentence in the opposite way. Is there some (linguistic or programming) logic behind this? Right now, I’m tempted to think of it as a bug, but that may be due to my ignorance.

I was puzzled by this too.

Do you think I should report this as possibly a syntactical bug?

Yeah, do that.

This is a more explicit test case:


There is a room called Palace. "The steps are still a little slick with blood."

Turandot is a woman in Palace.
Steve is a person.

Loving relates various person to various people.
The verb to love (he loves, they love, he loved, it is loved, he is loving) implies the loving relation. 


Steve loves Turandot.

When play begins:
	[these tests make sense...]
	if a person loves Turandot:
		say "A person loves Turandot.";
	if a person loves Steve:
		say "A person loves Steve.";
	if Steve loves a person:
		say "Steve loves a person.";
	if Turandot loves a person:
		say "Turandot loves a person.";
	[but these tests seem backwards...]
	if a person relates to Turandot by the loving relation:
		say "A person relates to Turandot.";
	if a person relates to Steve by the loving relation:
		say "A person relates to Steve.";
	if Steve relates to a person by the loving relation:
		say "Steve relates to a person.";
	if Turandot relates to a person by the loving relation:
		say "Turandot relates to a person.";

Reported: inform7.com/mantis/view.php?id=1113