From the English Law Society definition:
Lawyer - a member of one of the following professions, entitled to practise as such:
the profession of solicitor, barrister or advocate of the UK
a profession whose members are authorised to carry on legal activities by an approved regulator other than the Solicitors Regulation Authority (SRA)
an Establishment Directive profession other than a UK profession
a legal profession which has been approved by the SRA for the purpose of recognised bodies in England and Wales, and
any other regulated legal profession specified by the SRA for the purpose of this definition.
Learn more about the different types of legal professionals
Some countries don't protect the term (e.g. Scotland I believe) but England does.