s/object/automaton/g in API to be consistent with doc terminology.