Helper function to check if a token has a specific metadata flag.
The name of the token type
The metadata flag to check (e.g., 'isKeyword', 'isMajorClause')
True if the token has the flag set to true
Helper function to check if a token has a specific metadata flag.