Add public helper functions to derive pattern language info