Add a reference name analyzer

Adding an analyzer for reference names.