Given the bag of words {John, loves, Mary}, the action SHIFT-John-NNP is still different from the action SHIFT-Mary-NNP.
the action component of the features becomes SHIFT only, and the words John/ Mary must be used as lookahead configuration features for their disambiguation.