Another quirk: "You don't see him"
Posted: Thu Aug 03, 2006 6:05 pm
The applicable bit is around line 1091 in hugolib.h.
If you have a "living" thing that is neither male nor female (an androgenous alien, perhaps), and you've set the appropriate pronouns ("it", "it", "its", "itself), I've found at least one instance where the library will still refer to it as a "him". The code checks to see if the living thing is plural (them), else female (her), else (him).
It'd be pretty easy to test for obj.pronoun #2, and print that instead -- and if non-existent, follow through with the current logic.
For my purposes, I'll probably need to do a NewParseError for that one condition (case 11). :)
(update)
Here's how I've fixed that part, in a little snippet I put inside a NewParseError:
If you have a "living" thing that is neither male nor female (an androgenous alien, perhaps), and you've set the appropriate pronouns ("it", "it", "its", "itself), I've found at least one instance where the library will still refer to it as a "him". The code checks to see if the living thing is plural (them), else female (her), else (him).
It'd be pretty easy to test for obj.pronoun #2, and print that instead -- and if non-existent, follow through with the current logic.
For my purposes, I'll probably need to do a NewParseError for that one condition (case 11). :)
(update)
Here's how I've fixed that part, in a little snippet I put inside a NewParseError:
Code: Select all
print CThe(actor); \
MatchPlural(actor, "doesn't", "don't"); \
" see ";
if (obj.pronouns #2)
print obj.pronouns #2;
elseif obj is plural
"them";
elseif obj is female
"her";
else
"him";
print "."