Antecedent-Finding Algorithm

  1. check the most recent local context for an antecedent that matches all the constraints related to the pronoun.

    Constraints include number, gender, and other grammatical phenomena such as the rules for the use of reflexive pronouns.

    Semantic constraints imposing selectional restrictions may occur too: e.g. in There was cheese on the table. Jack ate it. the word it cannot refer to the table.

  2. if no referent is found in the current local context, move down the history list to the next most recent local context and search there.