now that labels are no longer bolded in the text rendering, the header detection code needs updating
note that we have to dynamically sort some of the expected lists for locale agnosticism