validate_tags function

Checks the tags of a linelist object