intfiction.org

The Interactive Fiction Community Forum
It is currently Thu May 23, 2013 5:08 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Feb 01, 2012 4:56 am 
Offline
User avatar

Joined: Tue Nov 17, 2009 5:25 pm
Posts: 628
This is something I couldn't figure out.
Code:
Uncle Oren is a person in the Shore. The printed name is "uncle Oren". The description is "[orens_descr]." Understand "man" as uncle Oren.

Two questions, one of which is surely trivial and the other will surely prove to be (as usual):
1) Why do I have to make that Understand rule? If I type "x man", Inform says "You can't see etc."--- while the PRONOUNS test gives an "him" for uncle Oren.
2) I've set the printed name "uncle Oren" 'cause I feel "You can see Uncle Oren here." as terribly wrong. Too bad, if I do something else, the answer is (sic and i.e.) "uncle Oren does xxx", with the first letter in lowercase.

How do I work around this (I mean the second question, the first works: it's just for polish's sake)

Thanks a lot!


Last edited by Jamespking on Wed Feb 01, 2012 6:20 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 5:49 am 
Offline

Joined: Sun Feb 17, 2008 3:51 pm
Posts: 256
As for number 2, just don't capitalize "uncle Oren" in the first place and you won't have to worry about it:
Code:
The Shore is a room.
uncle Oren is a person in the Shore.
test me with "x oren / oren, jump".


ETA: if that source looks ugly, you could do this:
Code:
A person called uncle Oren is in the Shore.

_________________
Skinny Mike


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 6:18 am 
Offline

Joined: Sun Feb 17, 2008 3:51 pm
Posts: 256
As for 1, Inform doesn't automatically understand things by their kind name (see point #7 in 4.17 - "Review of Chapter 4: Kinds"). However, even if it did, that wouldn't have affected your code since you made Oren a "person" rather than a "man" -- a (sub)kind of person. The reason the parser recognizes Oren as "him" is unrelated; the person kind has a gender property and it just so happens the default for that is masculine. Therefore, when Oren gets mentioned by the game, he's set as the default object for parsing the pronoun "him."

_________________
Skinny Mike


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 6:19 am 
Offline
User avatar

Joined: Tue Nov 17, 2009 5:25 pm
Posts: 628
Thanks a lot, it works.

It was trivial, as I thought.


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 6:27 am 
Offline
User avatar

Joined: Tue Nov 17, 2009 5:25 pm
Posts: 628
Skinny Mike wrote:
As for 1, Inform doesn't automatically understand things by their kind name (see point #7 in 4.17 - "Review of Chapter 4: Kinds"). However, even if it did, that wouldn't have affected your code since you made Oren a "person" rather than a "man" -- a (sub)kind of person. The reason the parser recognizes Oren as "him" is unrelated; the person kind has a gender property and it just so happens the default for that is masculine. Therefore, when Oren gets mentioned by the game, he's set as the default object for parsing the pronoun "him."

So, is there a way around it? I mean, if I say "oren is a man" does it work? Will check.

Anyway, looks like I7 is sexist. :P


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 6:36 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 887
Jamespking wrote:
So, is there a way around it? I mean, if I say "oren is a man" does it work? Will check.

If you mean having the parser automatically understand "man" as uncle Oren, then no, Inform doesn't automatically understand any kinds by their internal name. The way "around" it is to manually add the understand phrases:

Code:
Understand "man" as a man.
Understand "woman" as a woman.

Now the player can refer to any man or a woman in the game as MAN or WOMAN.

_________________
Vorple UI libraryBeta testing siteBlog


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 7:48 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2128
Location: Burlington, VT
Just a note that as a native American English speaker, "You can see Uncle Oren here" seems correct to me with the capital U. When "Uncle" or "Aunt" is used as part of the name, I capitalize it; so "You can see Uncle Oren here," but "You can see your uncle Oren here." Consider the way that Cousin Itt from the Addams family always gets a capital C.


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 9:11 am 
Offline

Joined: Thu May 13, 2010 5:24 pm
Posts: 135
matt w wrote:
Just a note that as a native American English speaker, "You can see Uncle Oren here" seems correct to me with the capital U. When "Uncle" or "Aunt" is used as part of the name, I capitalize it; so "You can see Uncle Oren here," but "You can see your uncle Oren here." Consider the way that Cousin Itt from the Addams family always gets a capital C.


And as a native American English speaker and a copy editor by profession, I can confirm that Matt is correct. "You can see uncle Oren here" is, in fact, incorrect.

-Kevin


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 9:37 am 
Offline
User avatar

Joined: Tue Nov 17, 2009 5:25 pm
Posts: 628
jacksonmead wrote:
matt w wrote:
Just a note that as a native American English speaker, "You can see Uncle Oren here" seems correct to me with the capital U. When "Uncle" or "Aunt" is used as part of the name, I capitalize it; so "You can see Uncle Oren here," but "You can see your uncle Oren here." Consider the way that Cousin Itt from the Addams family always gets a capital C.


And as a native American English speaker and a copy editor by profession, I can confirm that Matt is correct. "You can see uncle Oren here" is, in fact, incorrect.

-Kevin

Well, what to say. It is really precious to have such insights. That's the kind of mistake I will make all my life, without knowing...
This solves the problem... twice!

Thanks for your help.


Top
 Profile Send private message  
 
PostPosted: Wed Feb 01, 2012 3:55 pm 
Offline

Joined: Fri Jul 16, 2010 2:09 pm
Posts: 1950
I do believe "your uncle Oren" is the correct spelling, however. In that case, "uncle" isn't part of his name.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group