Word lookahead scheme for cross-word right context models in a stack decoder