def get_term_types():
  """Returns the vocabulary types for a `Word` non-terminal (_W_)."""
  term_types = ['_Wq_', '_Wa_', '_Wd_']
  if common_flags.USE_DOCUMENT_TITLE.value == 1:
    term_types.append('_Wt_')
  return term_types
Returns the vocabulary types for a `Word` non-terminal (_W_).
language/search_agents/muzero/grammar_lib.py