Fido Alpha 3.2

fido.linguistic.components
Class Pronoun

java.lang.Object
  |
  +--fido.linguistic.components.Pronoun
All Implemented Interfaces:
Noun

public class Pronoun
extends java.lang.Object
implements Noun

Represents a pronoun, which tells the system to look for a noun in the Discourse to replace.

The following table shows the pronouns for English:

Group Person Gender Subjective Objective Possessive Possessive
Adjective
false First   I me mine my
  Second   you you yours your
  Third masculine he him his his
    feminine she her hers her
    neuter it it   its
true First   we us ours our
  Second   you you yours your
  Third   they them theirs their

See Also:
Discourse, PronounResolver

Field Summary
static int FEMALE
           
static int FIRST
          Constant for setPerson() and getPerson()
static int MALE
           
static int NEUTER
           
static int SECOND
          Constant for setPerson() and getPerson()
static int THIRD
          Constant for setPerson() and getPerson()
 
Constructor Summary
Pronoun(int person, int gender, boolean group)
          Creates a new Pronoun object.
 
Method Summary
 int getGender()
          Returns the gender for this pronoun.
 int getPerson()
          Returns the person for this pronoun.
 boolean isGroup()
          Returns if the pronoun represents a group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST

public static final int FIRST
Constant for setPerson() and getPerson()

See Also:
Constant Field Values

SECOND

public static final int SECOND
Constant for setPerson() and getPerson()

See Also:
Constant Field Values

THIRD

public static final int THIRD
Constant for setPerson() and getPerson()

See Also:
Constant Field Values

MALE

public static final int MALE
See Also:
Constant Field Values

FEMALE

public static final int FEMALE
See Also:
Constant Field Values

NEUTER

public static final int NEUTER
See Also:
Constant Field Values
Constructor Detail

Pronoun

public Pronoun(int person,
               int gender,
               boolean group)
Creates a new Pronoun object. Person and Gender parameters should use the constant values defined within this class.

Parameters:
person - Person of the pronoun.
gender - Gender of the pronoun.
group - Identifies the pronoun as representing a group.
Method Detail

getPerson

public int getPerson()
Returns the person for this pronoun. Person can hold the following constant values:

Returns:
Constant int value for the person.

getGender

public int getGender()
Returns the gender for this pronoun. Gender can hold the following constant values:

Returns:
Constant int value for the gender.

isGroup

public boolean isGroup()
Returns if the pronoun represents a group.

Returns:
True if the pronoun represents a group. False otherwise.

Fido Alpha 3.2