language_next_state function

Language state advancement