Plurality

version 8 by Emily Short

  • Home page
  • Beginning
  • Previous



  • Section 2 - Pronouns

    To say that-those:
    say that-those prior named noun.

    To say Cap that-those:
    say Cap that-those prior named noun.

    To say that-those of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "those";
    otherwise if the item is the player;
             say "you";
        otherwise if the item is male and item is not neuter;
    say "he";
    otherwise if the item is female and item is not neuter;
    say "she";
    otherwise;
    say "that";
    end if.

    To say Cap that-those (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "Those";
    otherwise if the item is the player;
             say "You";
    otherwise if the item is male and item is not neuter;
    say "He";
    otherwise if the item is female and item is not neuter;
    say "She";
    otherwise;
    say "That";
    end if.

    To say that-those (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "those";
    otherwise if the item is the player;
             say "you";
        otherwise if the item is male and item is not neuter;
    say "he";
    otherwise if the item is female and item is not neuter;
    say "she";
    otherwise;
    say "that";
    end if.


    To say Cap that-those of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "Those";
    otherwise if the item is the player;
             say "You";
        otherwise if the item is male and item is not neuter;
    say "He";
    otherwise if the item is female and item is not neuter;
    say "She";
    otherwise;
    say "That";
    end if.

    To say it-they:
        say it-they of prior named noun.

    To say it-they of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "they";
    otherwise if the item is the player;
             say "you";
        otherwise if the item is male and item is not neuter;
    say "he";
    otherwise if the item is female and item is not neuter;
    say "she";
    otherwise;
    say "it";
    end if.

    To say Cap it-they:
        say Cap it-they of prior named noun.

    To say Cap it-they of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "They";
    otherwise if the item is the player;
             say "You";
        otherwise if the item is male and item is not neuter;
    say "He";
    otherwise if the item is female and item is not neuter;
    say "She";
    otherwise;
    say "It";
    end if.

    To say its-their:
        say its-their of prior named noun.
        
    To say its-their of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "their";
    otherwise if the item is the player;
             say "your";
        otherwise if the item is male and item is not neuter;
    say "his";
    otherwise if the item is female and item is not neuter;
    say "her";
    otherwise;
    say "its";
    end if.


    To say Cap its-their:
        say Cap its-their of prior named noun.
        
    To say Cap its-their of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "Their";
    otherwise if the item is the player;
             say "Your";
        otherwise if the item is male and item is not neuter;
    say "His";
    otherwise if the item is female and item is not neuter;
    say "Her";
    otherwise;
    say "Its";
    end if.

    To say it-them:
        say it-them of prior named noun.

    To say it-them of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "them";
    otherwise if the item is the player;
             say "you";
        otherwise if the item is male and item is not neuter;
    say "him";
    otherwise if the item is female and item is not neuter;
    say "her";
    otherwise;
    say "it";
    end if.

    To say Cap it-them:
        say Cap it-them of prior named noun.
        
    To say Cap it-them of (item - a thing):
    now the prior named noun is the item;
        mark prior named noun in output;
    if the item acts plural
    begin;
    say "Them";
    otherwise if the item is the player;
             say "You";
        otherwise if the item is male and item is not neuter;
    say "Him";
    otherwise if the item is female and item is not neuter;
    say "Her";
    otherwise;
    say "It";
    end if.
        

    To say its-theirs:
    say its-theirs of prior named noun.

    To say its-theirs of (item - a thing):
    now the prior named noun is the item;
    mark prior named noun in output;
    if the item acts plural
    begin;
    say "theirs";
    otherwise if the item is the player;
             say "yours";
        otherwise if the item is male and item is not neuter;
    say "his";
    otherwise if the item is female and item is not neuter;
    say "hers";
    otherwise;
    say "its";
    end if.

    To say Cap its-theirs:
    say its-theirs of prior named noun.

    To say Cap its-theirs of (item - a thing):
    now the prior named noun is the item;
    mark prior named noun in output;
    if the item acts plural
    begin;
    say "Theirs";
    otherwise if the item is the player;
             say "Yours";
        otherwise if the item is male and item is not neuter;
    say "His";
    otherwise if the item is female and item is not neuter;
    say "Hers";
    otherwise;
    say "Its";
    end if.

    To say possessive:
    say possessive of prior named noun.

    To say possessive of (item - a thing):
    now the prior named noun is the item;
    mark prior named noun in output;
    if the item is the player
    begin;
    say "your";
    otherwise if the item acts plural;
    say "[the item][apostrophe]";
    otherwise;
    say "[the item][apostrophe]s";
    end if.

    To say Cap possessive:
    say Cap possessive of prior named noun

    To say Cap possessive of (item - a thing):
    now the prior named noun is the item;
    mark prior named noun in output;
    if the item is the player
    begin;
    say "Your";
    otherwise if the item acts plural;
    say "[The item][apostrophe]";
    otherwise;
    say "[The item][apostrophe]s";
    end if.


    A thing can be ambiguously plural or ordinarily enumerated. A thing is usually ordinarily enumerated.

    Every turn: if the noun is a thing and the noun is ambiguously plural, notice the plurality of the noun; if the second noun is a thing and the second noun is ambiguously plural, notice the plurality of the second noun.

    After printing the name of an ambiguously plural thing (called the suspect):
        if the manual pronouns option is active, do nothing;
        otherwise notice the plurality of the suspect.
        
    To notice the plurality of (suspect - an object):
        (- PlugPlural({suspect}); -)
        
    Include (-

    [ PlugPlural obj;
        SetPronoun('them', obj);
        SetPronoun('it', obj);
    ];

    -)

    Use Manual Pronouns translates as (- Constant MANUAL_PRONOUNS; -)

    To have the parser notice (o - an object):
        if o is ambiguously plural, notice the plurality of o;
        otherwise set pronouns from o

    [The following is a legacy item in case people are still using it in their code, but "set pronouns from..." will work just as well.]

    To notice (o - an object) boringly:
        (- PronounNotice({o}); -)
        


    Plurality ends here.